mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix for state race condition.
This commit is contained in:
parent
45607201ab
commit
6df8bfa66d
@ -51,7 +51,8 @@ int stateTest()
|
||||
|
||||
// Mine to get some ether!
|
||||
s.commitToMine(bc);
|
||||
while (s.mine(100).completed) {}
|
||||
while (!s.mine(100).completed) {}
|
||||
s.completeMine();
|
||||
bc.attemptImport(s.blockData(), stateDB);
|
||||
|
||||
cout << bc;
|
||||
@ -77,7 +78,8 @@ int stateTest()
|
||||
|
||||
// Mine to get some ether and set in stone.
|
||||
s.commitToMine(bc);
|
||||
while (s.mine(100).completed) {}
|
||||
while (!s.mine(100).completed) {}
|
||||
s.completeMine();
|
||||
bc.attemptImport(s.blockData(), stateDB);
|
||||
|
||||
cout << bc;
|
||||
|
Loading…
Reference in New Issue
Block a user