add sleep 1 second to avoid invalid blocks due to same timestamp during creation

Conflicts:
	test/blockchain.cpp
This commit is contained in:
CJentzsch 2015-04-17 12:19:12 +02:00
parent f6cfe40010
commit 35dafa7479
2 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,7 @@
"transactions" : [ "transactions" : [
{ {
"data" : "setInt8", "data" : "setInt8",
"data" : "0x9a19a953000000000000000000000000000000000000000000000000fffffffffffffffa", "data" : "0x9a19a953fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa",
"gasLimit" : "314159", "gasLimit" : "314159",
"gasPrice" : "1", "gasPrice" : "1",
"nonce" : "10", "nonce" : "10",

View File

@ -289,6 +289,7 @@ void doBlockchainTests(json_spirit::mValue& _v, bool _fillin)
state = stateTemp; //revert state as if it was before executing this block state = stateTemp; //revert state as if it was before executing this block
} }
blArray.push_back(blObj); blArray.push_back(blObj);
sleep(1);
} //for blocks } //for blocks
if (o.count("expect") > 0) if (o.count("expect") > 0)