Browse Source

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

Conflicts:
	test/blockchain.cpp
cl-refactor
CJentzsch 10 years ago
parent
commit
e396efd3be
  1. 2
      test/bcRPC_API_TestFiller.json
  2. 1
      test/blockchain.cpp

2
test/bcRPC_API_TestFiller.json

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

1
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)

Loading…
Cancel
Save