Page MenuHomePhabricator

Reduce MAX_PEER_TX_ANNOUNCEMENTS for non-PF_RELAY peers
ClosedPublic

Authored by Fabien on May 19 2021, 08:55.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABC530648e3d421: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable