HomePhabricator

ArgsMan: Add Get*Arg functions returning optional

Description

ArgsMan: Add Get*Arg functions returning optional

Summary:
This allows the caller to not provide a default at all and just check
inside the optional to see if the arg was set or not.

This is a partial backport of core#25290
https://github.com/bitcoin/bitcoin/pull/25290/commits/fc02f77ca604f0221171bfde3059b34f5d0fb1cd

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
Carl Dong <contact@carldong.me>Authored on Oct 24 2021, 06:26
PiRKCommitted on Jan 30 2024, 09:35
PiRKPushed on Jan 30 2024, 09:35
Reviewer
Restricted Project
Differential Revision
D15297: ArgsMan: Add Get*Arg functions returning optional
Parents
rABC3ae66bb5cc47: Remove the unused TX_RECENT_CONSENSUS_CHANGE tx validation result
Branches
Unknown
Tags
Unknown