HomePhabricator

p2p: Reduce inv traffic during IBD

Description

p2p: Reduce inv traffic during IBD

Summary:

Tx-inv messages are ignored during IBD, so it would be nice if we told
peers to not send them in the first place. Do that by sending two
feefilter messages: One when the connection is made (and the node is in
IBD), and another one when the node leaves IBD.

Backport of core#19204.

Test Plan:

ninja all check-all

Run IBD.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D9330

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Jun 7 2020, 17:55
FabienCommitted on Mar 22 2021, 09:03
FabienPushed on Mar 22 2021, 09:05
Reviewer
Restricted Project
Differential Revision
D9330: p2p: Reduce inv traffic during IBD
Parents
rABC56f61132d708: net: Extract download permission from noban
Branches
Unknown
Tags
Unknown