1414from test_framework .util import (
1515 assert_equal ,
1616 disconnect_nodes ,
17- connect_nodes_bi ,
17+ connect_nodes ,
1818 wait_until ,
1919)
2020
@@ -64,7 +64,7 @@ def run_test(self):
6464 assert_equal (int (self .nodes [0 ].getnetworkinfo ()['localservices' ], 16 ), expected_services )
6565
6666 self .log .info ("Mine enough blocks to reach the NODE_NETWORK_LIMITED range." )
67- connect_nodes_bi (self .nodes , 0 , 1 )
67+ connect_nodes (self .nodes [ 0 ] , 1 )
6868 blocks = self .nodes [1 ].generatetoaddress (292 , self .nodes [1 ].get_deterministic_priv_key ().address )
6969 self .sync_blocks ([self .nodes [0 ], self .nodes [1 ]])
7070
@@ -90,7 +90,7 @@ def run_test(self):
9090
9191 # connect unsynced node 2 with pruned NODE_NETWORK_LIMITED peer
9292 # because node 2 is in IBD and node 0 is a NODE_NETWORK_LIMITED peer, sync must not be possible
93- connect_nodes_bi (self .nodes , 0 , 2 )
93+ connect_nodes (self .nodes [ 0 ] , 2 )
9494 try :
9595 self .sync_blocks ([self .nodes [0 ], self .nodes [2 ]], timeout = 5 )
9696 except :
@@ -99,7 +99,7 @@ def run_test(self):
9999 assert_equal (self .nodes [2 ].getblockheader (self .nodes [2 ].getbestblockhash ())['height' ], 0 )
100100
101101 # now connect also to node 1 (non pruned)
102- connect_nodes_bi (self .nodes , 1 , 2 )
102+ connect_nodes (self .nodes [ 1 ] , 2 )
103103
104104 # sync must be possible
105105 self .sync_blocks ()
@@ -111,7 +111,7 @@ def run_test(self):
111111 self .nodes [0 ].generatetoaddress (10 , self .nodes [0 ].get_deterministic_priv_key ().address )
112112
113113 # connect node1 (non pruned) with node0 (pruned) and check if the can sync
114- connect_nodes_bi (self .nodes , 0 , 1 )
114+ connect_nodes (self .nodes [ 0 ] , 1 )
115115
116116 # sync must be possible, node 1 is no longer in IBD and should therefore connect to node 0 (NODE_NETWORK_LIMITED)
117117 self .sync_blocks ([self .nodes [0 ], self .nodes [1 ]])
0 commit comments