HomePhabricator

[avalanche] Add an unbroadcast set of proofs

Description

[avalanche] Add an unbroadcast set of proofs

Summary:
When a proof is manually submitted via sendavalancheproof, an inventory
is sent to all the peers but they are not tracked like other proof invs.
An unbroadcasted set of proofs is added to the peermanager that allow
for reattempt broadcasting these proofs until a peer has requested it.
This is similar to what is done with transactions, and will also make it
possible to store our proofs to a file and broadcast it at startup like
we do for the mempool content.

Ref T1611.

Test Plan:

ninja check-functional

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

Maniphest Tasks: T1611

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

Details

Provenance
FabienAuthored on Jun 7 2021, 09:19
FabienPushed on Jun 18 2021, 05:52
Reviewer
Restricted Project
Differential Revision
D9688: [avalanche] Add an unbroadcast set of proofs
Parents
rABC41a27535979f: [tests] Remove unnecessary cs_mains in denialofservice_tests
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task