Merge #21509: p2p: Don't send FEEFILTER in blocksonly mode.
pull/826/headbeead33a21
[test] no send feefilters when txrelay is turned off (glozow)18a9b27dd6
p2p: Don't send FEEFILTER in blocksonly mode (Martin Zumsande) Pull request description: The purpose of FEEFILTER messages (BIP 133) is to inform our peers that we do not want transactions below a specified fee rate. In blocksonly mode, we do not want our peer to send us any transactions at all (and will disconnect if a peer still sends a transaction INV or TX). Therefore, I don't think that it makes sense to send FEEFILTER messages every 10 minutes on average in blocksonly mode - this PR disables it. Note that on block-relay-only connections, FEEFILTER is already disabled, just not in blocksonly mode. ACKs for top commit: glozow: re ACKbeead33a21
🙂 thanks for adding the test! amitiuttarwar: reACKbeead33a21
MarcoFalke: review ACKbeead33a21
jnewbery: reACKbeead33a21
Tree-SHA512: e748cd52fe23d647fa49008b020389956ac508e16ce9fd108d8afb773bff95788298ae229162bd70215d7246fc25c796484966dc05890b0b4ef601f9cd35628b
commit
4399dc8142
Loading…
Reference in new issue