HomePhabricator

[avalanche] Protect from eviction nodes that relayed new proofs

Description

[avalanche] Protect from eviction nodes that relayed new proofs

Summary:
Similar to what is done for txs and blocks, this protects 4 nodes from eviction sorted by the last time they sent us a proof we didn't know previously. Note that the fallback make (when both time = 0) makes it possible to have this enabled all the time even if avalanche is disabled.

Ref T1634.

Test Plan:

ninja check
./test/functional/test_runner.py p2p_eviction

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

Maniphest Tasks: T1634

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

Details

Provenance
FabienAuthored on Jul 26 2021, 06:16
FabienPushed on Jul 27 2021, 18:09
Reviewer
Restricted Project
Differential Revision
D9836: [avalanche] Protect from eviction nodes that relayed new proofs
Parents
rABC49641c3121ac: [avalanche] Fix the getavalanchepeerinfo help
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task