aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--state.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/state.cpp b/state.cpp
index 92b274ec..8d82b0c2 100644
--- a/state.cpp
+++ b/state.cpp
@@ -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;