HomePhabricator

[avalanche] Cleanup dangling proofs

Description

[avalanche] Cleanup dangling proofs

Summary:
This removes the proofs attached to dangling peers, i.e. the peers with no node that have been registered for some time. This means that we will discard the proof if no node claimed it or if they disconnected. This will also sink the conflicting pool as the proofs will be pulled back to valid, and eventually cleanup up the same way if no node attached to it as well.
The callsite for this method will be added in a follow up with the associated functional tests.

Test Plan:

ninja check-avalanche

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Subscribers: sdulfari

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

Details

Provenance
FabienAuthored on Jun 22 2022, 13:00
FabienPushed on Jun 24 2022, 16:08
Reviewer
Restricted Project
Differential Revision
D11659: [avalanche] Cleanup dangling proofs
Parents
rABCa767c9cbef07: [avalanche] Add height parameter to buildRandomProof
Branches
Unknown
Tags
Unknown