net: Remove -feefilter option, as it is debug only and isn’t used in any tests. Checking this option for every peer on every iteration of the message handler is unnecessary, as described in #21545.
refactor: Move feefilter logic out into a separate MaybeSendFeefilter(...)
function to improve readability of the already long SendMessages(...)
. fixes #21545
The configuration option -feefilter
has been added in 9e072a6e66efbda7d39bf61eded21d2b324323be: “Implement “feefilter” P2P message”
According to the BIP133, turning the fee filter off was ment for:
[…] a node […] using prioritisetransaction to accept transactions whose actual fee rates might fall below the node’s mempool min fee [in order to] disable the fee filter to make sure it is exposed to all possible txid’s
-feefilter
was subsequently set as debug only in #8150, with the motivation that the help message was too difficult to translate.