This makes the functional test suite compatible with BIP324, so that
python3 test_runner.py --v2transport
should succeed (currently, 12 tests fail for me on master).
Includes two commits by TheStack I found in an old discussion #28331 (review)
Note that even though all tests should pass, the python p2p.py
module will do v2 connections only after the merge of #24748, so that for now only connections between two full nodes will actually run v2.
Some of the fixed tests were added with --v2transport
to the test runner. Though after #24748 we might also want to consider running the entire suite with --v2transport
in some CI.