HomePhabricator

[avalanche] Don't poll blocks who are ancestors of a vote finalized block

Description

[avalanche] Don't poll blocks who are ancestors of a vote finalized block

Summary:
Once a block has been voted on and finalized, there is no point polling
its ancestors anymore.
Test is added to check the ancestors are removed from the polls, and
also that a block from a forked chain is still polled, so invalidating a
block manually is still possible if needed and won't interfere.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Subscribers: sdulfari

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

Details

Provenance
FabienAuthored on Aug 11 2022, 09:24
FabienPushed on Aug 12 2022, 17:13
Reviewer
Restricted Project
Differential Revision
D11849: [avalanche] Don't poll blocks who are ancestors of a vote finalized block
Parents
rABCa74757f1b30d: [avalanche] Fix comment related to proof requests
Branches
Unknown
Tags
Unknown