HomePhabricator

[avalanche] Introduce the ProofPool multi index structure

Description

[avalanche] Introduce the ProofPool multi index structure

Summary:
This diff adds a generic multi index container for storing the proofs, with an utxo based mapping. The proofs can then be retrieve by utxos but also by proofid as needed. This container will be used to replace the orphan pool in a follow-up, hence the name validProofPool by opposition to the coming orphanProofPool. There is no change in behavior.

Ref T1854.

Depends on D10520.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Maniphest Tasks: T1854

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

Details

Provenance
FabienAuthored on Nov 24 2021, 16:06
FabienPushed on Nov 26 2021, 15:22
Reviewer
Restricted Project
Differential Revision
D10521: [avalanche] Introduce the ProofPool multi index structure
Parents
rABC5e19f58d165b: [avalanche] Rename isValid => isBoundToPeer
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task