aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/reindex.py
diff options
context:
space:
mode:
Diffstat (limited to 'qa/rpc-tests/reindex.py')
-rwxr-xr-xqa/rpc-tests/reindex.py3
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")