[Part 2] [tests] Add P2P interface to TestNode
Summary:
Partial backport of core PR11182 (part of commit 32ae82f)
Update the tests to the new P2P interface
Depends on D2326
Test Plan:
./test/functional/test_runner.py maxuploadtarget p2p-acceptblock
p2p-compactblocks
Reviewers: #bitcoin_abc, deadalnix, jasonbcox
Reviewed By: #bitcoin_abc, jasonbcox
Subscribers: teamcity, schancel
Differential Revision: https://reviews.bitcoinabc.org/D2328