HomePhabricator

[avalanche] Fix potential wrong error message in the sendavalancheproof RPC

Description

[avalanche] Fix potential wrong error message in the sendavalancheproof RPC

Summary:
The RPC does a lot of checks before attempting to register a proof and assumes it can only fail due to conflicts. This is no longer true since previously evicted dangling proofs are rejected.
This diff makes the error message more generic so the correct error message is returned, and new errors will be printed correctly as well.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Sep 9 2022, 08:34
FabienPushed on Sep 9 2022, 13:33
Reviewer
Restricted Project
Differential Revision
D11945: [avalanche] Fix potential wrong error message in the sendavalancheproof RPC
Parents
rABCe1ed3f0d62a8: Bump version to 0.26.0
Branches
Unknown
Tags
Unknown