HomePhabricator

[avalanche] Also finalize the ancestors of a transaction

Description

[avalanche] Also finalize the ancestors of a transaction

Summary:
When avalanche finalizes a transaction, we want to make sure all the ancestors are final as well. This is a step toward using the radix tree of finalized transactions as a source for the block template.

Note that this diff does not add the ancestors to the list of the recently finalized items, this will be done in a later diff. This implies that the node could poll for the ancestors despite the child being final already.

Test Plan:

ninja check-all

Reviewers: #bitcoin_abc, PiRK, roqqit

Reviewed By: #bitcoin_abc, PiRK, roqqit

Subscribers: roqqit, Mengerian, PiRK

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

Details

Provenance
FabienAuthored on Thu, Feb 27, 21:56
FabienPushed on Mon, Mar 3, 08:58
Reviewer
Restricted Project
Differential Revision
D17717: [avalanche] Also finalize the ancestors of a transaction
Parents
rABCc71468342225: tests: use noban_tx_relay in more tests
Branches
Unknown
Tags
Unknown