HomePhabricator

rpc: Actually throw help when passed invalid number of params

Authored by MarcoFalke <falke.marco@gmail.com> on Feb 13 2019, 01:16.

Description

rpc: Actually throw help when passed invalid number of params

Summary:

  • rpc: Add RPCHelpMan::IsValidNumArgs()

This is a backport of Core PR15401

Depends on D6064

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: majcosta

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

Details

Committed
deadalnixMay 22 2020, 17:21
Pushed
deadalnixMay 22 2020, 17:21
Reviewer
Restricted Project
Differential Revision
D6220: rpc: Actually throw help when passed invalid number of params
Parents
rABC20bb047dd3a5: RPCHelpMan: Check default values are given at compile-time
Branches
Unknown
Tags
Unknown