Skip to content

Commit 610f4dd

Browse files
author
MarcoFalke
committed
Merge #13304: qa: Fix wallet_listreceivedby race
fa865ef qa: Fix wallet_listreceivedby race (MarcoFalke) Pull request description: Generating a block on node 0 will only get node 0 out of IBD and not node 1. So the inv for the `txid` is dropped by node 1 and the call to `sync_all` fails. Solve it by a call to `sync_blocks` after `generate`. Tree-SHA512: e21b01a9e8c90bd6a3aad290c97cc4866ab384e22797b318eed55ae2767512203597d3a184b23ad5a3fe76bdbb8a3d5c51e097d56b160232851164434059ff23
2 parents f8be434 + fa865ef commit 610f4dd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/functional/wallet_listreceivedby.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
from decimal import Decimal
77

88
from test_framework.test_framework import BitcoinTestFramework
9-
from test_framework.util import (assert_array_result,
10-
assert_equal,
11-
assert_raises_rpc_error,
12-
)
9+
from test_framework.util import (
10+
assert_array_result,
11+
assert_equal,
12+
assert_raises_rpc_error,
13+
sync_blocks,
14+
)
15+
1316

1417
class ReceivedByTest(BitcoinTestFramework):
1518
def set_test_params(self):
@@ -18,6 +21,7 @@ def set_test_params(self):
1821
def run_test(self):
1922
# Generate block to get out of IBD
2023
self.nodes[0].generate(1)
24+
sync_blocks(self.nodes)
2125

2226
self.log.info("listreceivedbyaddress Test")
2327

0 commit comments

Comments
 (0)