Skip to content

Commit f3bc953

Browse files
MarcoFalkePastaPastaPasta
authored andcommitted
Merge bitcoin#22187: test: Add sync_blocks in wallet_orphanedreward.py
7a681d6 Add sync_blocks in wallet_orphanedreward.py. (Daniel Kraft) Pull request description: 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. ACKs for top commit: MarcoFalke: review ACK 7a681d6 Tree-SHA512: bb226c31bf3f2e7c52beb829d7b67496e5b38781245db5f9184e3f28c93ac3aa4d21fcf5bf3055e79d384cfd0ed916e79dccb3d77486e86fe1fedb5e35f894ad
1 parent 16ccb90 commit f3bc953

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
@@ -32,6 +32,7 @@ def run_test(self):
3232
# Let the block reward mature and send coins including both
3333
# the existing balance and the block reward.
3434
self.nodes[0].generate(150)
35+
self.sync_blocks()
3536
assert_equal(self.nodes[1].getbalance(), Decimal("474.28571429"))
3637
txid = self.nodes[1].sendtoaddress(self.nodes[0].getnewaddress(), 30)
3738

0 commit comments

Comments
 (0)