https://github.com/bitcoin/bitcoin/pull/29353

Motivation

The P2P classes for the Python test suite do not behave as the Core node does with respect to sending a version message: The expected behavior is for a node to send a version message as his first message provided he is the connection initiator, or respond with a version message upon receiving one is he is the responder. However, the various P2P nodes under the test framework eagerly send a version message as soon as a connection is made, indistinguishable of whether they are the initiators or not. This PR addresses that.

Thoughts/Questions

Review

test: p2p: adhere to typical VERSION message protocol flow by theStack · Pull Request #29353 · bitcoin/bitcoin