Report reindexing progress in GUI

This commit is contained in:
Pieter Wuille
2016-04-28 16:18:45 +02:00
parent d3d7547911
commit b4d24e142e
10 changed files with 82 additions and 19 deletions

View File

@ -8,6 +8,7 @@
#
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import time
class ReindexTest(BitcoinTestFramework):
@ -26,6 +27,8 @@ class ReindexTest(BitcoinTestFramework):
stop_node(self.nodes[0], 0)
wait_bitcoinds()
self.nodes[0]=start_node(0, self.options.tmpdir, ["-debug", "-reindex-chainstate" if justchainstate else "-reindex", "-checkblockindex=1"])
while self.nodes[0].getblockcount() < blockcount:
time.sleep(0.1)
assert_equal(self.nodes[0].getblockcount(), blockcount)
print("Success")