mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-29 09:55:49 +02:00
rpc: remove unneeded RPCTypeCheckArgument checks
No-behavior change. Since #25629, we check the univalue type internally.
This commit is contained in:
@@ -605,8 +605,7 @@ static RPCHelpMan gettxspendingprevout()
|
||||
},
|
||||
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
|
||||
{
|
||||
RPCTypeCheckArgument(request.params[0], UniValue::VARR);
|
||||
const UniValue& output_params = request.params[0];
|
||||
const UniValue& output_params = request.params[0].get_array();
|
||||
if (output_params.empty()) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, outputs are missing");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user