After add_outbound_p2p_connection
, the test framework normally sends a version message only in reply to a received version. This is fine, but the protocol does not require this and tolerates a version to be sent earlier.
However, this is untested, and the missing test coverage leads to bugs being missed. For example #30394#pullrequestreview-2166824948
Fix it by adding a test.