HomePhabricator

[avalanche] Make the deserialization error code consistent between RPCs

Description

[avalanche] Make the deserialization error code consistent between RPCs

Summary:
RPC_DESERIALIZATION_ERROR is a better code than
RPC_INVALID_PARAMETER when an hex proof cannot be deserialized.

Ref T1611.

Test Plan:

./test/functional/test_runner.py abc_rpc_avalancheproof

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Maniphest Tasks: T1611

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

Details

Provenance
FabienAuthored on Tue, Jun 8, 14:09
FabienPushed on Wed, Jun 9, 07:50
Reviewer
Restricted Project
Differential Revision
D9649: [avalanche] Make the deserialization error code consistent between RPCs
Parents
rABCe9fc5f21799a: [avalanche] Add a facility to check if avalanche is enabled
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task