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 @@ -382,7 +382,11 @@ def connect_nodes(from_connection, node_num):
382382 from_connection .addnode (ip_port , "onetry" )
383383 # poll until version handshake complete to avoid race conditions
384384 # with transaction relaying
385- wait_until (lambda : all (peer ['version' ] != 0 for peer in from_connection .getpeerinfo ()))
385+ # See comments in net_processing:
386+ # * Must have a version message before anything else
387+ # * Must have a verack message before anything else
388+ wait_until (lambda : all (peer ['version' ] != 0 for peer in from_connection .getpeerinfo ()))
389+ wait_until (lambda : all (peer ['bytesrecv_per_msg' ].pop ('verack' , 0 ) == 24 for peer in from_connection .getpeerinfo ()))
386390
387391def connect_nodes_clique (nodes ):
388392 # max_workers should be the maximum number of nodes that we have in the same functional test,
You can’t perform that action at this time.
0 commit comments