@@ -243,7 +243,7 @@ def run_test(self):
243
243
if i == 0 :
244
244
# first request the block
245
245
test_node .get_data ([tip ])
246
- test_node .wait_for_block (tip , timeout = 5 )
246
+ test_node .wait_for_block (tip )
247
247
elif i == 1 :
248
248
# next try requesting header and block
249
249
test_node .get_headers (locator = [old_tip ], hashstop = tip )
@@ -258,7 +258,7 @@ def run_test(self):
258
258
new_block = create_block (tip , create_coinbase (height + 1 ), block_time )
259
259
new_block .solve ()
260
260
test_node .send_header_for_blocks ([new_block ])
261
- test_node .wait_for_getdata ([new_block .sha256 ], timeout = 5 )
261
+ test_node .wait_for_getdata ([new_block .sha256 ])
262
262
test_node .send_message (msg_block (new_block ))
263
263
test_node .sync_with_ping () # make sure this block is processed
264
264
inv_node .clear_last_announcement ()
@@ -297,18 +297,18 @@ def run_test(self):
297
297
if j == 0 :
298
298
# Announce via inv
299
299
test_node .send_block_inv (tip )
300
- test_node .wait_for_getheaders (timeout = 5 )
300
+ test_node .wait_for_getheaders ()
301
301
# Should have received a getheaders now
302
302
test_node .send_header_for_blocks (blocks )
303
303
# Test that duplicate inv's won't result in duplicate
304
304
# getdata requests, or duplicate headers announcements
305
305
[ inv_node .send_block_inv (x .sha256 ) for x in blocks ]
306
- test_node .wait_for_getdata ([x .sha256 for x in blocks ], timeout = 5 )
306
+ test_node .wait_for_getdata ([x .sha256 for x in blocks ])
307
307
inv_node .sync_with_ping ()
308
308
else :
309
309
# Announce via headers
310
310
test_node .send_header_for_blocks (blocks )
311
- test_node .wait_for_getdata ([x .sha256 for x in blocks ], timeout = 5 )
311
+ test_node .wait_for_getdata ([x .sha256 for x in blocks ])
312
312
# Test that duplicate headers won't result in duplicate
313
313
# getdata requests (the check is further down)
314
314
inv_node .send_header_for_blocks (blocks )
@@ -495,7 +495,7 @@ def run_test(self):
495
495
with mininode_lock :
496
496
test_node .last_message .pop ("getheaders" , None )
497
497
test_node .send_header_for_blocks ([blocks [1 ]])
498
- test_node .wait_for_getheaders (timeout = 1 )
498
+ test_node .wait_for_getheaders ()
499
499
test_node .send_header_for_blocks (blocks )
500
500
test_node .wait_for_getdata ([x .sha256 for x in blocks ])
501
501
[ test_node .send_message (msg_block (x )) for x in blocks ]
@@ -518,7 +518,7 @@ def run_test(self):
518
518
with mininode_lock :
519
519
test_node .last_message .pop ("getheaders" , None )
520
520
test_node .send_header_for_blocks ([blocks [i ]])
521
- test_node .wait_for_getheaders (timeout = 1 )
521
+ test_node .wait_for_getheaders ()
522
522
523
523
# Next header will connect, should re-set our count:
524
524
test_node .send_header_for_blocks ([blocks [0 ]])
@@ -533,7 +533,7 @@ def run_test(self):
533
533
with mininode_lock :
534
534
test_node .last_message .pop ("getheaders" , None )
535
535
test_node .send_header_for_blocks ([blocks [i % len (blocks )]])
536
- test_node .wait_for_getheaders (timeout = 1 )
536
+ test_node .wait_for_getheaders ()
537
537
538
538
# Eventually this stops working.
539
539
test_node .send_header_for_blocks ([blocks [- 1 ]])
0 commit comments