HomePhabricator

[avalanche] Add a way to promote old entries in the contender cache to a new…

Description

[avalanche] Add a way to promote old entries in the contender cache to a new chain tip

Summary: Remote proofs are only tracked by proofid in the peer manager, so the contender cache needs to continuously "promote" cache entries since it does not store the proofs themselves. Each time promotion is attempted, an indirect validity check is done to ensure the cache is not tracking invalid proofs.

Test Plan:

ninja check-avalanche-stakecontendercache_tests

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
roqqitAuthored on Oct 21 2024, 18:23
roqqitPushed on Thu, Oct 24, 18:11
Reviewer
Restricted Owners Package
Differential Revision
D16951: [avalanche] Add a way to promote old entries in the contender cache to a new chain tip
Parents
rABC218edc02974a: [CI] Update build-configurations with secp256k1 dependencies
Branches
Unknown
Tags
Unknown