From e396efd3be2269d40328f6fefbdc21c638b88a50 Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Fri, 17 Apr 2015 12:19:12 +0200 Subject: [PATCH] add sleep 1 second to avoid invalid blocks due to same timestamp during creation Conflicts: test/blockchain.cpp --- test/bcRPC_API_TestFiller.json | 2 +- test/blockchain.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/bcRPC_API_TestFiller.json b/test/bcRPC_API_TestFiller.json index 2938178c2..781bd5e7d 100644 --- a/test/bcRPC_API_TestFiller.json +++ b/test/bcRPC_API_TestFiller.json @@ -226,7 +226,7 @@ "transactions" : [ { "data" : "setInt8", - "data" : "0x9a19a953000000000000000000000000000000000000000000000000fffffffffffffffa", + "data" : "0x9a19a953fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa", "gasLimit" : "314159", "gasPrice" : "1", "nonce" : "10", diff --git a/test/blockchain.cpp b/test/blockchain.cpp index 7fb425ed6..8854a9705 100644 --- a/test/blockchain.cpp +++ b/test/blockchain.cpp @@ -289,6 +289,7 @@ void doBlockchainTests(json_spirit::mValue& _v, bool _fillin) state = stateTemp; //revert state as if it was before executing this block } blArray.push_back(blObj); + sleep(1); } //for blocks if (o.count("expect") > 0)