@@ -284,17 +284,22 @@ def run_test(self):
284
284
285
285
# Run each test against new bitcoind instances, as setting mocktimes has long-term effects on when
286
286
# the next trickle relay event happens.
287
- for test in [self .test_in_flight_max , self .test_inv_block , self .test_tx_requests ,
288
- self .test_rejects_filter_reset ]:
287
+ for test , with_inbounds in [
288
+ (self .test_in_flight_max , True ),
289
+ (self .test_inv_block , True ),
290
+ (self .test_tx_requests , True ),
291
+ (self .test_rejects_filter_reset , False ),
292
+ ]:
289
293
self .stop_nodes ()
290
294
self .start_nodes ()
291
295
self .connect_nodes (1 , 0 )
292
296
# Setup the p2p connections
293
297
self .peers = []
294
- for node in self .nodes :
295
- for _ in range (NUM_INBOUND ):
296
- self .peers .append (node .add_p2p_connection (TestP2PConn ()))
297
- self .log .info ("Nodes are setup with {} incoming connections each" .format (NUM_INBOUND ))
298
+ if with_inbounds :
299
+ for node in self .nodes :
300
+ for _ in range (NUM_INBOUND ):
301
+ self .peers .append (node .add_p2p_connection (TestP2PConn ()))
302
+ self .log .info ("Nodes are setup with {} incoming connections each" .format (NUM_INBOUND ))
298
303
test ()
299
304
300
305
0 commit comments