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 @@ -391,7 +391,11 @@ def connect_nodes(from_connection, node_num):
391
391
from_connection .addnode (ip_port , "onetry" )
392
392
# poll until version handshake complete to avoid race conditions
393
393
# with transaction relaying
394
- wait_until (lambda : all (peer ['version' ] != 0 for peer in from_connection .getpeerinfo ()))
394
+ # See comments in net_processing:
395
+ # * Must have a version message before anything else
396
+ # * Must have a verack message before anything else
397
+ wait_until (lambda : all (peer ['version' ] != 0 for peer in from_connection .getpeerinfo ()))
398
+ wait_until (lambda : all (peer ['bytesrecv_per_msg' ].pop ('verack' , 0 ) == 24 for peer in from_connection .getpeerinfo ()))
395
399
396
400
397
401
def sync_blocks (rpc_connections , * , wait = 1 , timeout = 60 ):
You can’t perform that action at this time.
0 commit comments