mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
rpc: remove unneeded RPCTypeCheckArgument checks
No-behavior change. Since #25629, we check the univalue type internally.
This commit is contained in:
@@ -503,7 +503,6 @@ void FundTransaction(CWallet& wallet, CMutableTransaction& tx, CAmount& fee_out,
|
||||
coinControl.fAllowWatchOnly = options.get_bool();
|
||||
}
|
||||
else {
|
||||
RPCTypeCheckArgument(options, UniValue::VOBJ);
|
||||
RPCTypeCheckObj(options,
|
||||
{
|
||||
{"add_inputs", UniValueType(UniValue::VBOOL)},
|
||||
@@ -1644,7 +1643,6 @@ RPCHelpMan walletcreatefundedpsbt()
|
||||
bool rbf{wallet.m_signal_rbf};
|
||||
const UniValue &replaceable_arg = options["replaceable"];
|
||||
if (!replaceable_arg.isNull()) {
|
||||
RPCTypeCheckArgument(replaceable_arg, UniValue::VBOOL);
|
||||
rbf = replaceable_arg.isTrue();
|
||||
}
|
||||
CMutableTransaction rawTx = ConstructTransaction(request.params[0], request.params[1], request.params[2], rbf);
|
||||
|
||||
Reference in New Issue
Block a user