Skip to content

Commit 483e8e4

Browse files
author
MarcoFalke
committed
Merge #8724: [qa] walletbackup: Sync blocks inside the loop
fad41f3 [qa] walletbackup: Sync blocks inside the loop (MarcoFalke)
2 parents 239e8ce + fad41f3 commit 483e8e4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

qa/rpc-tests/walletbackup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ def __init__(self):
4545
super().__init__()
4646
self.setup_clean_chain = True
4747
self.num_nodes = 4
48+
# nodes 1, 2,3 are spenders, let's give them a keypool=100
49+
self.extra_args = [["-keypool=100"], ["-keypool=100"], ["-keypool=100"], []]
4850

4951
# This mirrors how the network was setup in the bash test
5052
def setup_network(self, split=False):
51-
# nodes 1, 2,3 are spenders, let's give them a keypool=100
52-
extra_args = [["-keypool=100"], ["-keypool=100"], ["-keypool=100"], []]
53-
self.nodes = start_nodes(self.num_nodes, self.options.tmpdir, extra_args)
53+
self.nodes = start_nodes(self.num_nodes, self.options.tmpdir, self.extra_args)
5454
connect_nodes(self.nodes[0], 3)
5555
connect_nodes(self.nodes[1], 3)
5656
connect_nodes(self.nodes[2], 3)
@@ -79,6 +79,7 @@ def do_one_round(self):
7979
# Must sync mempools before mining.
8080
sync_mempools(self.nodes)
8181
self.nodes[3].generate(1)
82+
sync_blocks(self.nodes)
8283

8384
# As above, this mirrors the original bash test.
8485
def start_three(self):

0 commit comments

Comments
 (0)