File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ def run_test(self):
115
115
116
116
self .mocktime += 2
117
117
node .setmocktime (self .mocktime )
118
- self .wait_until (lambda : node .num_test_p2p_connections ( ) == NUM_PEERS - 2 )
118
+ self .wait_until (lambda : sum ( x . is_connected for x in node .p2ps ) == NUM_PEERS - 2 )
119
119
self .wait_until (lambda : self .is_block_requested (peers , stall_block ))
120
120
self .all_sync_send_with_ping (peers )
121
121
@@ -128,7 +128,7 @@ def run_test(self):
128
128
129
129
self .mocktime += 2
130
130
node .setmocktime (self .mocktime )
131
- self .wait_until (lambda : node .num_test_p2p_connections ( ) == NUM_PEERS - 3 )
131
+ self .wait_until (lambda : sum ( x . is_connected for x in node .p2ps ) == NUM_PEERS - 3 )
132
132
self .wait_until (lambda : self .is_block_requested (peers , stall_block ))
133
133
self .all_sync_send_with_ping (peers )
134
134
You can’t perform that action at this time.
0 commit comments