HomePhabricator

[avalanche] Add a mode to the proof registration to force accept it as a peer

Description

[avalanche] Add a mode to the proof registration to force accept it as a peer

Summary:
This diff adds a new mode parameter to the proof registration function. This allows for reusing most of the registration code and add the specific behavior that will be requires to account for the votes. There is no change in behavior by default. The new force accept mode will be used when the network accepts the proof during a vote.

Ref T1854.

Test Plan:

ninja all check-avalanche

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Maniphest Tasks: T1854

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

Details

Provenance
FabienAuthored on Dec 20 2021, 14:38
FabienPushed on Jan 14 2022, 10:45
Reviewer
Restricted Project
Differential Revision
D10704: [avalanche] Add a mode to the proof registration to force accept it as a peer
Parents
rABC7d75d11530e2: [Cashtab] Add correct dev dependency for ESlint types in jest
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task