HomePhabricator

Clarify the transaction validation result

Description

Clarify the transaction validation result

Summary:
The TX_CONFLICT validation result is used in several places that are not related to tx conflict. This diff creates 2 new codes to avoid confusion, and actually use the TX_CONFLICT value when there is a conflict (instead of using a policy error value).

This will make it easier to spot the conflicting transaction and take action like storing them and polling via avalanche.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Jan 25 2024, 15:23
FabienPushed on Jan 26 2024, 15:23
Reviewer
Restricted Project
Differential Revision
D15283: Clarify the transaction validation result
Parents
rABC999c85a5cf71: [avalanche] Build a radix tree of finalized txs
Branches
Unknown
Tags
Unknown