mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-09 22:57:56 +00:00
Merge #7757: [qa] wallet: Wait for reindex to catch up
fa3fafc
[qa] wallet: Wait for reindex to catch up (MarcoFalke)
This commit is contained in:
commit
26794d4645
@ -279,6 +279,7 @@ class WalletTest (BitcoinTestFramework):
|
|||||||
blocks = self.nodes[0].generate(2)
|
blocks = self.nodes[0].generate(2)
|
||||||
self.sync_all()
|
self.sync_all()
|
||||||
balance_nodes = [self.nodes[i].getbalance() for i in range(3)]
|
balance_nodes = [self.nodes[i].getbalance() for i in range(3)]
|
||||||
|
block_count = self.nodes[0].getblockcount()
|
||||||
|
|
||||||
maintenance = [
|
maintenance = [
|
||||||
'-rescan',
|
'-rescan',
|
||||||
@ -292,6 +293,9 @@ class WalletTest (BitcoinTestFramework):
|
|||||||
stop_nodes(self.nodes)
|
stop_nodes(self.nodes)
|
||||||
wait_bitcoinds()
|
wait_bitcoinds()
|
||||||
self.nodes = start_nodes(3, self.options.tmpdir, [[m]] * 3)
|
self.nodes = start_nodes(3, self.options.tmpdir, [[m]] * 3)
|
||||||
|
while m == '-reindex' and [block_count] * 3 != [self.nodes[i].getblockcount() for i in range(3)]:
|
||||||
|
# reindex will leave rpc warm up "early"; Wait for it to finish
|
||||||
|
time.sleep(0.1)
|
||||||
assert_equal(balance_nodes, [self.nodes[i].getbalance() for i in range(3)])
|
assert_equal(balance_nodes, [self.nodes[i].getbalance() for i in range(3)])
|
||||||
|
|
||||||
# Exercise listsinceblock with the last two blocks
|
# Exercise listsinceblock with the last two blocks
|
||||||
|
Loading…
Reference in New Issue
Block a user