HomePhabricator

[avalanche] Return unconclusive status for the mempool txs that are not pollable

Description

[avalanche] Return unconclusive status for the mempool txs that are not pollable

Summary:
This handles the edge case of txs that are accepted into the mempool but are not pollable yet because the radix tree is full. This transaction should be removable from the mempool (e.g. because of low fee) in order to prevent from from filling the mempool with finalized dust. With this solution the txs that don't fit the radix tree still participate to the fee eviction, and the most valuable txs will be polled after the current radix tree has been mined.

All the housekeeping is already done by the avalanche core, and the rwlock is very efficient for read accesses so performance is not an issue.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Jun 10 2025, 13:38
FabienPushed on Jun 11 2025, 12:40
Reviewer
Restricted Project
Differential Revision
D18233: [avalanche] Return unconclusive status for the mempool txs that are not pollable
Parents
rABCa52a5004932b: [chronik] Electrum: Implement blockchain.transaction.subscribe endpoint
Branches
Unknown
Tags
Unknown