Page MenuHomePhabricator

rpc: Actually throw help when passed invalid number of params
ClosedPublic

Authored by deadalnix on May 22 2020, 16:36.

Details

Summary
  • rpc: Add RPCHelpMan::IsValidNumArgs()

This is a backport of Core PR15401

Depends on D6064

Test Plan
ninja all check-all

Diff Detail

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

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.May 22 2020, 17:14
src/rpc/util.cpp
435 ↗(On Diff #20517)

should we make num_args const?