Fix for state race condition.

This commit is contained in:
Gav Wood 2014-07-06 15:33:06 +02:00
parent 45607201ab
commit 6df8bfa66d

View File

@ -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;