From 35dafa7479c232bbaeeaff9b9e4a429d2d505829 Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Fri, 17 Apr 2015 12:19:12 +0200 Subject: add sleep 1 second to avoid invalid blocks due to same timestamp during creation Conflicts: test/blockchain.cpp --- bcRPC_API_TestFiller.json | 2 +- blockchain.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bcRPC_API_TestFiller.json b/bcRPC_API_TestFiller.json index 2938178c..781bd5e7 100644 --- a/bcRPC_API_TestFiller.json +++ b/bcRPC_API_TestFiller.json @@ -226,7 +226,7 @@ "transactions" : [ { "data" : "setInt8", - "data" : "0x9a19a953000000000000000000000000000000000000000000000000fffffffffffffffa", + "data" : "0x9a19a953fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa", "gasLimit" : "314159", "gasPrice" : "1", "nonce" : "10", diff --git a/blockchain.cpp b/blockchain.cpp index 7fb425ed..8854a970 100644 --- a/blockchain.cpp +++ b/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) -- cgit v1.2.3