HomePhabricator

rpc: Validate provided keys for query_options parameter in listunspent

Description

rpc: Validate provided keys for query_options parameter in listunspent

Summary:

With this change listunspent will throw an error if there is a wrong key
in the query_option object.

Signed-off-by: pasta <pasta@dashboost.org>

Comment by @MarcoFalke:

RPCman will do this in the future, but nothing wrong adding something like that in the meantime

This is a backport of core#19169

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
pasta <pasta@dashboost.org>Authored on Jun 5 2020, 18:40
PiRKCommitted on Sep 16 2021, 13:22
PiRKPushed on Sep 16 2021, 13:22
Reviewer
Restricted Project
Differential Revision
D10129: rpc: Validate provided keys for query_options parameter in listunspent
Parents
rABCf7b6498de892: test: nits in TestChain100Setup
Branches
Unknown
Tags
Unknown