aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-06-08 10:39:11 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-06-08 10:39:15 +0200
commit45a8b01fad96d93113896b9332618e936aef77af (patch)
tree7802e4a17d6e7577c8decd635ef0e7371f7dab85 /test/functional
parent76d4018aa5426f2359b80466a56d28fc5046e0e2 (diff)
parent7a681d61b0d98a310fbb1b8e095ab8fbc5d5741c (diff)
Merge bitcoin/bitcoin#22187: test: Add sync_blocks in wallet_orphanedreward.py
7a681d61b0d98a310fbb1b8e095ab8fbc5d5741c 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 #22181. ACKs for top commit: MarcoFalke: review ACK 7a681d61b0d98a310fbb1b8e095ab8fbc5d5741c Tree-SHA512: bb226c31bf3f2e7c52beb829d7b67496e5b38781245db5f9184e3f28c93ac3aa4d21fcf5bf3055e79d384cfd0ed916e79dccb3d77486e86fe1fedb5e35f894ad
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/wallet_orphanedreward.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/wallet_orphanedreward.py b/test/functional/wallet_orphanedreward.py
index e1544cbb48..097df2cf41 100755
--- a/test/functional/wallet_orphanedreward.py
+++ b/test/functional/wallet_orphanedreward.py
@@ -31,6 +31,7 @@ class OrphanedBlockRewardTest(BitcoinTestFramework):
# 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)