Page MenuHomePhabricator

doc: Properly report optional RPC args
ClosedPublic

Authored by Fabien on Jun 7 2024, 20:54.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC0a7620afd89b: doc: Properly report optional RPC args
Summary
OMITTED_NAMED_ARG and OMITTED are a confusing burden:

    It puts the burden on developers to pick the right one of the two
    They can be interchanged without introducing a compile failure or other error
    Picking the wrong one is leading to incorrect docs
    They are redundant, because the correct one can already be determined by the surrounding type

Fix all issues by making them an alias of each other; Pick the right one based on the outer type.

Backport of core#26706.

Depends on D16314.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable