Following the merge of wtxid relay in #18044, this is the first of three refactoring PRs (this one, #19610, and #19611) with no change in behavior, tightly scoped to ease review, to simplify the net processing code and improve encapsulation:
-
add
CInv
transaction message helper methods, defined in the class -
use the new helpers in
net_processing.cpp
to simplify the code and improve encapsulation
Test coverage is provided by the functional p2p tests, notably (from seeing which tests failed when breaking things to test coverage) p2p_segwit
, p2p_tx_download
, p2p_feefilter
, and p2p_permissions
.