mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-11 07:09:29 +02:00
rpc: Run type check against RPCArgs
This commit is contained in:
@@ -568,8 +568,6 @@ static RPCHelpMan upgradewallet()
|
||||
std::shared_ptr<CWallet> const pwallet = GetWalletForJSONRPCRequest(request);
|
||||
if (!pwallet) return UniValue::VNULL;
|
||||
|
||||
RPCTypeCheck(request.params, {UniValue::VNUM}, true);
|
||||
|
||||
EnsureWalletIsUnlocked(*pwallet);
|
||||
|
||||
int version = 0;
|
||||
@@ -637,8 +635,6 @@ RPCHelpMan simulaterawtransaction()
|
||||
if (!rpc_wallet) return UniValue::VNULL;
|
||||
const CWallet& wallet = *rpc_wallet;
|
||||
|
||||
RPCTypeCheck(request.params, {UniValue::VARR, UniValue::VOBJ}, true);
|
||||
|
||||
LOCK(wallet.cs_wallet);
|
||||
|
||||
UniValue include_watchonly(UniValue::VNULL);
|
||||
|
||||
Reference in New Issue
Block a user