Page MenuHomePhabricator

Clarify the transaction validation result
ClosedPublic

Authored by Fabien on Jan 25 2024, 15:30.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC24372428c4b1: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable