HomePhabricator

rpc: Keep default argument value in correct type

Description

rpc: Keep default argument value in correct type

Summary:
Store default values of RPC arguments in the corresponding type instead of a string. The value is then serialized when the help output is needed.

This enables checking default value type againts argument type.

This is a backport of core#21679
Depends on D14405

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
João Barbosa <joao.paulo.barbosa@gmail.com>Authored on Apr 14 2021, 14:01
PiRKCommitted on Aug 25 2023, 05:44
PiRKPushed on Aug 25 2023, 05:44
Reviewer
Restricted Project
Differential Revision
D14409: rpc: Keep default argument value in correct type
Parents
rABC3498789f05ca: [Chronik] Update Rust version to 1.72.0 and nightly to 2023-08-23
Branches
Unknown
Tags
Unknown