diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-04-28 16:18:45 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-05-17 00:45:58 +0200 |
commit | b4d24e142e25a21c78ab74146c3520f2259fd7c2 (patch) | |
tree | 2137ba5f3a179d993e7789815c4c2acdc8971dd6 /qa | |
parent | d3d75479115bc3480f163df774ee9dd2f8bd9f54 (diff) |
Report reindexing progress in GUI
Diffstat (limited to 'qa')
-rwxr-xr-x | qa/rpc-tests/reindex.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/rpc-tests/reindex.py b/qa/rpc-tests/reindex.py index cb5e413fd6..a3f4d6ea01 100755 --- a/qa/rpc-tests/reindex.py +++ b/qa/rpc-tests/reindex.py @@ -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") |