diff options
author | Gav Wood <i@gavwood.com> | 2014-07-06 21:33:06 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-07-06 21:33:06 +0800 |
commit | 6df8bfa66db2bd3a90cd779bfefac3d9316d7fa2 (patch) | |
tree | 2ce66c93506816ccc870b173c58f08256241830b /state.cpp | |
parent | 45607201ab0d4aaf6df82d6f35a8fb70e890107e (diff) | |
download | dexon-solidity-6df8bfa66db2bd3a90cd779bfefac3d9316d7fa2.tar dexon-solidity-6df8bfa66db2bd3a90cd779bfefac3d9316d7fa2.tar.gz dexon-solidity-6df8bfa66db2bd3a90cd779bfefac3d9316d7fa2.tar.bz2 dexon-solidity-6df8bfa66db2bd3a90cd779bfefac3d9316d7fa2.tar.lz dexon-solidity-6df8bfa66db2bd3a90cd779bfefac3d9316d7fa2.tar.xz dexon-solidity-6df8bfa66db2bd3a90cd779bfefac3d9316d7fa2.tar.zst dexon-solidity-6df8bfa66db2bd3a90cd779bfefac3d9316d7fa2.zip |
Fix for state race condition.
Diffstat (limited to 'state.cpp')
-rw-r--r-- | state.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |