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