Skip to content

Commit 7a681d6

Browse files
committed
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 bitcoin/bitcoin#22181.
1 parent e638acf commit 7a681d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/functional/wallet_orphanedreward.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def run_test(self):
3131
# Let the block reward mature and send coins including both
3232
# the existing balance and the block reward.
3333
self.nodes[0].generate(150)
34+
self.sync_blocks()
3435
assert_equal(self.nodes[1].getbalance(), 10 + 25)
3536
txid = self.nodes[1].sendtoaddress(self.nodes[0].getnewaddress(), 30)
3637

0 commit comments

Comments
 (0)