mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Merge #8724: [qa] walletbackup: Sync blocks inside the loop
fad41f3 [qa] walletbackup: Sync blocks inside the loop (MarcoFalke)
This commit is contained in:
commit
483e8e4f48
@ -45,12 +45,12 @@ class WalletBackupTest(BitcoinTestFramework):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self.setup_clean_chain = True
|
self.setup_clean_chain = True
|
||||||
self.num_nodes = 4
|
self.num_nodes = 4
|
||||||
|
# nodes 1, 2,3 are spenders, let's give them a keypool=100
|
||||||
|
self.extra_args = [["-keypool=100"], ["-keypool=100"], ["-keypool=100"], []]
|
||||||
|
|
||||||
# This mirrors how the network was setup in the bash test
|
# This mirrors how the network was setup in the bash test
|
||||||
def setup_network(self, split=False):
|
def setup_network(self, split=False):
|
||||||
# nodes 1, 2,3 are spenders, let's give them a keypool=100
|
self.nodes = start_nodes(self.num_nodes, self.options.tmpdir, self.extra_args)
|
||||||
extra_args = [["-keypool=100"], ["-keypool=100"], ["-keypool=100"], []]
|
|
||||||
self.nodes = start_nodes(self.num_nodes, self.options.tmpdir, extra_args)
|
|
||||||
connect_nodes(self.nodes[0], 3)
|
connect_nodes(self.nodes[0], 3)
|
||||||
connect_nodes(self.nodes[1], 3)
|
connect_nodes(self.nodes[1], 3)
|
||||||
connect_nodes(self.nodes[2], 3)
|
connect_nodes(self.nodes[2], 3)
|
||||||
@ -79,6 +79,7 @@ class WalletBackupTest(BitcoinTestFramework):
|
|||||||
# Must sync mempools before mining.
|
# Must sync mempools before mining.
|
||||||
sync_mempools(self.nodes)
|
sync_mempools(self.nodes)
|
||||||
self.nodes[3].generate(1)
|
self.nodes[3].generate(1)
|
||||||
|
sync_blocks(self.nodes)
|
||||||
|
|
||||||
# As above, this mirrors the original bash test.
|
# As above, this mirrors the original bash test.
|
||||||
def start_three(self):
|
def start_three(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user