Skip to content

Commit

Permalink
Add sync_blocks in wallet_orphanedreward.py.
Browse files Browse the repository at this point in the history
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 bitcoin#22181.
  • Loading branch information
domob1812 committed Jun 8, 2021
1 parent e638acf commit 7a681d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/wallet_orphanedreward.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def run_test(self):
# Let the block reward mature and send coins including both
# the existing balance and the block reward.
self.nodes[0].generate(150)
self.sync_blocks()
assert_equal(self.nodes[1].getbalance(), 10 + 25)
txid = self.nodes[1].sendtoaddress(self.nodes[0].getnewaddress(), 30)

Expand Down

0 comments on commit 7a681d6

Please sign in to comment.