HomePhabricator

[avalanche] Simplify the proof reconciliation logic

Description

[avalanche] Simplify the proof reconciliation logic

Summary: This diff moves some of the logic surrounding addProofToReconcile and deduplicate some other. The isWorthPolling method now takes care of determining if the proof needs to be voted on and we can leverage this to simplify the code in the network layer. It also makes it easier to use the addProofToReconcile method.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Jun 27 2022, 19:52
FabienPushed on Jun 29 2022, 19:15
Reviewer
Restricted Project
Differential Revision
D11672: [avalanche] Simplify the proof reconciliation logic
Parents
rABC4ea84717df12: [linter] Fix a outdated comment on clang format version
Branches
Unknown
Tags
Unknown