fixed block generation on mine

This commit is contained in:
arkpar 2015-02-01 16:43:24 +01:00
parent 69fa5db471
commit 71396ad7f1

View File

@ -51,7 +51,7 @@ int stateTest()
cout << s; cout << s;
// Mine to get some ether! // Mine to get some ether!
s.commitToMine(bc); s.commitToMine();
while (!s.mine(100).completed) {} while (!s.mine(100).completed) {}
s.completeMine(); s.completeMine();
bc.attemptImport(s.blockData(), stateDB); bc.attemptImport(s.blockData(), stateDB);
@ -74,7 +74,7 @@ int stateTest()
cout << s; cout << s;
// Mine to get some ether and set in stone. // Mine to get some ether and set in stone.
s.commitToMine(bc); s.commitToMine();
while (!s.mine(100).completed) {} while (!s.mine(100).completed) {}
s.completeMine(); s.completeMine();
bc.attemptImport(s.blockData(), stateDB); bc.attemptImport(s.blockData(), stateDB);