HomePhabricator

rpc: Set RPCArg options with designated initializers

Description

rpc: Set RPCArg options with designated initializers

Summary:

For optional constructor arguments, use a new struct. This comes with two benefits:

    Earlier unused optional arguments can be omitted
    Designated initializers can be used

Backport of core#26074.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
MacroFake <falke.marco@gmail.com>Authored on Sep 13 2022, 11:38
FabienCommitted on May 30 2024, 08:27
FabienPushed on May 30 2024, 08:27
Reviewer
Restricted Project
Differential Revision
D16246: rpc: Set RPCArg options with designated initializers
Parents
rABC1f28ea1fcf8c: Bump timeout when checking contiguous addresses in net_tests
Branches
Unknown
Tags
Unknown