HomePhabricator

Reduce MAX_PEER_TX_ANNOUNCEMENTS for non-PF_RELAY peers

Description

Reduce MAX_PEER_TX_ANNOUNCEMENTS for non-PF_RELAY peers

Summary:

Maintaining up to 100000 INVs per peer is excessive, as that is far more
than fits in a typical mempool.

Also disable the "overload" penalty for PF_RELAY peers.

Partial backport of core#19988:
https://github.com/bitcoin/bitcoin/pull/19988/commits/de11b0a4eff20da3e3ca52dc90948b5253d329c5

Depends on D9550.

Test Plan:

ninja all check-all
./test/functional/test_runner.py p2p_tx_download

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
Pieter Wuille <pieter@wuille.net>Authored on Sep 24 2020, 00:00
FabienCommitted on May 20 2021, 15:14
FabienPushed on May 20 2021, 15:14
Reviewer
Restricted Project
Differential Revision
D9551: Reduce MAX_PEER_TX_ANNOUNCEMENTS for non-PF_RELAY peers
Parents
rABC984c943817e2: Change transaction request logic to use txrequest
Branches
Unknown
Tags
Unknown