aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-04-06 16:11:03 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-04-06 16:11:36 +0000
commit7326b691d301ee605671b7efd9e531685590e7d6 (patch)
treec8ebc6ac94f1213e50583a42c4e7338822e51633 /tests
parentfunctional_tests: ensure signed timestamps are fresh (diff)
downloadmonero-7326b691d301ee605671b7efd9e531685590e7d6.tar.xz
functional_tests: ensure signatures never reuse a timestamp
Diffstat (limited to 'tests')
-rw-r--r--tests/functional_tests/make_test_signature.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional_tests/make_test_signature.cc b/tests/functional_tests/make_test_signature.cc
index 6ac1a6a86..f31816841 100644
--- a/tests/functional_tests/make_test_signature.cc
+++ b/tests/functional_tests/make_test_signature.cc
@@ -27,6 +27,7 @@
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h>
+#include "misc_language.h"
#include "string_tools.h"
#include "rpc/rpc_payment_signature.h"
@@ -69,6 +70,7 @@ int main(int argc, const char **argv)
while (count--)
{
std::string signature = cryptonote::make_rpc_payment_signature(skey);
+ epee::misc_utils::sleep_no_w(1);
printf("%s\n", signature.c_str());
}
return 0;