mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Add sync_blocks in wallet_orphanedreward.py.
Add an explicit sync_blocks call in wallet_orphanedreward.py, which was missing and could lead to intermittent failures of the test due to race conditions. This will presumably fix https://github.com/bitcoin/bitcoin/issues/22181.
This commit is contained in:
parent
e638acf697
commit
7a681d61b0
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ class OrphanedBlockRewardTest(BitcoinTestFramework):
|
||||||
# Let the block reward mature and send coins including both
|
# Let the block reward mature and send coins including both
|
||||||
# the existing balance and the block reward.
|
# the existing balance and the block reward.
|
||||||
self.nodes[0].generate(150)
|
self.nodes[0].generate(150)
|
||||||
|
self.sync_blocks()
|
||||||
assert_equal(self.nodes[1].getbalance(), 10 + 25)
|
assert_equal(self.nodes[1].getbalance(), 10 + 25)
|
||||||
txid = self.nodes[1].sendtoaddress(self.nodes[0].getnewaddress(), 30)
|
txid = self.nodes[1].sendtoaddress(self.nodes[0].getnewaddress(), 30)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue