This extends the functional test p2p_addr_relay.py
.
It adds test coverage for address relay involving outbound peers, tests for both outgoing and incoming GETADDR
requests and tests for -blocksonly
mode.
The initial refactors and some of the new tests were taken from Amiti Uttarwar’s PR #21528 - they are general test improvements not directly tied to the change proposed there.