diff options
author | Daniel Kraft <d@domob.eu> | 2021-06-08 09:50:59 +0200 |
---|---|---|
committer | Daniel Kraft <d@domob.eu> | 2021-06-08 09:52:10 +0200 |
commit | 7a681d61b0d98a310fbb1b8e095ab8fbc5d5741c (patch) | |
tree | 5abb15054ea4787b3b95b20afd8743294e2f48cf | |
parent | e638acf6970394f8eb1957366ad2d39512f33b31 (diff) |
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.
-rwxr-xr-x | test/functional/wallet_orphanedreward.py | 1 |
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) |