HomePhabricator

[avalanche] Properly clean up the finalized transactions from the ancestor of…

Description

[avalanche] Properly clean up the finalized transactions from the ancestor of the finalized block

Summary:
Make sure that we remove the finalized transaction that are confirmed in a block which is an ancestor of the finalized block.
Otherwise it is possible that several blocks are mined in a row and the tip finalized, causing the transactions from the previous block to remain in the radix tree.

Depends on D18414.

Test Plan:

ninja check check-functional

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: Mengerian, PiRK

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

Details

Provenance
FabienAuthored on Jul 23 2025, 13:10
FabienPushed on Jul 25 2025, 10:34
Reviewer
Restricted Project
Differential Revision
D18407: [avalanche] Properly clean up the finalized transactions from the ancestor of the finalized block
Parents
rABC5f70f208060b: [avalanche] Release the locking requirements in AvalancheFinalizeBlock
Branches
Unknown
Tags
Unknown