aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/util.py
diff options
context:
space:
mode:
authorDaniel Kraft <d@domob.eu>2014-10-24 09:06:37 +0200
committerDaniel Kraft <d@domob.eu>2014-10-24 09:06:37 +0200
commit2290ed01bc1b4176a0c6b976707bf7dd6bc49f43 (patch)
treec42bba84957b04ed1c2b9b83cc723128842a95b7 /qa/rpc-tests/util.py
parentdcb98466b4f8193fc28656d17b2317f21665fa3a (diff)
Work around #5113.
Diffstat (limited to 'qa/rpc-tests/util.py')
-rw-r--r--qa/rpc-tests/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/rpc-tests/util.py b/qa/rpc-tests/util.py
index 87baadc5d6..036ac577e6 100644
--- a/qa/rpc-tests/util.py
+++ b/qa/rpc-tests/util.py
@@ -194,6 +194,10 @@ def connect_nodes(from_connection, node_num):
while any(peer['version'] == 0 for peer in from_connection.getpeerinfo()):
time.sleep(0.1)
+def connect_nodes_bi(nodes, a, b):
+ connect_nodes(nodes[a], b)
+ connect_nodes(nodes[b], a)
+
def find_output(node, txid, amount):
"""
Return index to output of txid with value amount