File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 88 assert_equal ,
99 assert_greater_than ,
1010 assert_raises_rpc_error ,
11- p2p_port ,
1211)
1312from test_framework .governance import EXPECTED_STDERR_NO_GOV_PRUNE
1413
@@ -134,11 +133,11 @@ def run_test(self):
134133 self .nodes [i ].assert_start_raises_init_error (extra_args = self .extra_args [i ], expected_msg = f"{ EXPECTED_STDERR_NO_GOV_PRUNE } \n { msg } " )
135134
136135 self .log .info ("make sure the nodes start again with the indices and an additional -reindex arg" )
137- ip_port = "127.0.0.1:" + str (p2p_port (3 ))
138136 for i in range (3 ):
139- # The nodes need to be reconnected to the non-pruning node upon restart, otherwise they will be stuck
140- restart_args = self .extra_args [i ]+ ["-reindex" , f"-connect={ ip_port } " ]
137+ restart_args = self .extra_args [i ]+ ["-reindex" ]
141138 self .restart_node (i , extra_args = restart_args , expected_stderr = EXPECTED_STDERR_NO_GOV_PRUNE )
139+ # The nodes need to be reconnected to the non-pruning node upon restart, otherwise they will be stuck
140+ self .connect_nodes (i , 3 )
142141
143142 self .sync_blocks (timeout = 300 )
144143
You can’t perform that action at this time.
0 commit comments