aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorDaniel Kraft <d@domob.eu>2014-11-07 10:23:21 +0100
committerDaniel Kraft <d@domob.eu>2014-11-07 10:23:21 +0100
commit2db4c8a24d47065bdd6e80560cc5e458088849ff (patch)
treec65e1fcaf2d30bfb516f056cccf515f371b62ceb /qa
parent2262415411fed5ba18ea024bbef9f765cc6fc2d9 (diff)
downloadbitcoin-2db4c8a24d47065bdd6e80560cc5e458088849ff.tar.xz
Fix node ranges in the test framework.
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/test_framework.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/rpc-tests/test_framework.py b/qa/rpc-tests/test_framework.py
index c3396a5a83..9591c024fb 100755
--- a/qa/rpc-tests/test_framework.py
+++ b/qa/rpc-tests/test_framework.py
@@ -44,8 +44,8 @@ class BitcoinTestFramework(object):
# on outward. This ensures that chains are properly reorganised.
if not split:
connect_nodes_bi(self.nodes, 1, 2)
- sync_blocks(self.nodes[1:2])
- sync_mempools(self.nodes[1:2])
+ sync_blocks(self.nodes[1:3])
+ sync_mempools(self.nodes[1:3])
connect_nodes_bi(self.nodes, 0, 1)
connect_nodes_bi(self.nodes, 2, 3)
@@ -63,9 +63,9 @@ class BitcoinTestFramework(object):
def sync_all(self):
if self.is_network_split:
- sync_blocks(self.nodes[:1])
+ 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:])
else:
sync_blocks(self.nodes)