Page MenuHomePhabricator

rpc: Set RPCArg options with designated initializers
ClosedPublic

Authored by Fabien on May 29 2024, 19:30.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC1a62bc71c3dc: 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

Event Timeline

Fabien requested review of this revision.May 29 2024, 19:30
PiRK added a subscriber: PiRK.
PiRK added inline comments.
src/wallet/rpc/backup.cpp
1724–1726

the layout can be improved for the above 3 lines

This revision is now accepted and ready to land.May 30 2024, 08:17