File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,11 @@ def connect_nodes(from_connection, node_num):
399
399
from_connection .addnode (ip_port , "onetry" )
400
400
# poll until version handshake complete to avoid race conditions
401
401
# with transaction relaying
402
- wait_until (lambda : all (peer ['version' ] != 0 for peer in from_connection .getpeerinfo ()))
402
+ # See comments in net_processing:
403
+ # * Must have a version message before anything else
404
+ # * Must have a verack message before anything else
405
+ wait_until (lambda : all (peer ['version' ] != 0 for peer in from_connection .getpeerinfo ()))
406
+ wait_until (lambda : all (peer ['bytesrecv_per_msg' ].pop ('verack' , 0 ) == 24 for peer in from_connection .getpeerinfo ()))
403
407
404
408
405
409
def sync_blocks (rpc_connections , * , wait = 1 , timeout = 60 ):
You can’t perform that action at this time.
0 commit comments