HomePhabricator

refactor: use convenience fn to auto parse non-string parameters

Description

refactor: use convenience fn to auto parse non-string parameters

Summary:

Minimizes code duplication and improves function naming by having
a single (overloaded) convenience function that both checks if
the parameter is a non-string parameter and automatically parses the
value if so.

Backport of core#26506.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
stickies-v <stickies-v@protonmail.com>Authored on Nov 15 2022, 15:56
FabienCommitted on Jun 6 2024, 09:26
FabienPushed on Jun 6 2024, 09:26
Reviewer
Restricted Project
Differential Revision
D16292: refactor: use convenience fn to auto parse non-string parameters
Parents
rABC238a16e2413b: univalue: Remove confusing getBool method
Branches
Unknown
Tags
Unknown