mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Merge pull request #5237
2db4c8a Fix node ranges in the test framework. (Daniel Kraft)
This commit is contained in:
commit
20e4f654f5
@ -44,8 +44,8 @@ class BitcoinTestFramework(object):
|
|||||||
# on outward. This ensures that chains are properly reorganised.
|
# on outward. This ensures that chains are properly reorganised.
|
||||||
if not split:
|
if not split:
|
||||||
connect_nodes_bi(self.nodes, 1, 2)
|
connect_nodes_bi(self.nodes, 1, 2)
|
||||||
sync_blocks(self.nodes[1:2])
|
sync_blocks(self.nodes[1:3])
|
||||||
sync_mempools(self.nodes[1:2])
|
sync_mempools(self.nodes[1:3])
|
||||||
|
|
||||||
connect_nodes_bi(self.nodes, 0, 1)
|
connect_nodes_bi(self.nodes, 0, 1)
|
||||||
connect_nodes_bi(self.nodes, 2, 3)
|
connect_nodes_bi(self.nodes, 2, 3)
|
||||||
@ -63,9 +63,9 @@ class BitcoinTestFramework(object):
|
|||||||
|
|
||||||
def sync_all(self):
|
def sync_all(self):
|
||||||
if self.is_network_split:
|
if self.is_network_split:
|
||||||
sync_blocks(self.nodes[:1])
|
sync_blocks(self.nodes[:2])
|
||||||
sync_blocks(self.nodes[2:])
|
sync_blocks(self.nodes[2:])
|
||||||
sync_mempools(self.nodes[:1])
|
sync_mempools(self.nodes[:2])
|
||||||
sync_mempools(self.nodes[2:])
|
sync_mempools(self.nodes[2:])
|
||||||
else:
|
else:
|
||||||
sync_blocks(self.nodes)
|
sync_blocks(self.nodes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user