Page MenuHomePhabricator

[avalanche] Limit the remote proofs per peer
ClosedPublic

Authored by Fabien on Oct 20 2023, 20:22.

Details

Reviewers
PiRK
bytesofman
Group Reviewers
Restricted Project
Commits
rABC8065ce2ec6b1: [avalanche] Limit the remote proofs per peer
Summary

Ensure we don't store an unbound number of proofs from our peers, but allow for expansion as the network grows.

Depends on D14660.

Test Plan
ninja check-avalanche-peermanager_tests

Diff Detail

Event Timeline

Fabien requested review of this revision.Oct 20 2023, 20:22
PiRK requested changes to this revision.Oct 22 2023, 09:19
PiRK added a subscriber: PiRK.
PiRK added inline comments.
src/avalanche/peermanager.cpp
592–594

The comment is wrong if our number of proofs decreases (only one proof is removed)

This revision now requires changes to proceed.Oct 22 2023, 09:19

Handle peer list shrinkage

This revision is now accepted and ready to land.Oct 22 2023, 18:12