aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/fees.cpp
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-07-29 10:35:10 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2022-09-15 10:45:18 -0300
commite68d380797918e655decb76fc11725197d6d5323 (patch)
tree8767559c235d249e9a3fe655dfd84d5a58eb55a4 /src/rpc/fees.cpp
parent55566630c60d23993a52ed54c95e7891f4588d57 (diff)
downloadbitcoin-e68d380797918e655decb76fc11725197d6d5323.tar.xz
rpc: remove unneeded RPCTypeCheckArgument checks
No-behavior change. Since #25629, we check the univalue type internally.
Diffstat (limited to 'src/rpc/fees.cpp')
-rw-r--r--src/rpc/fees.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rpc/fees.cpp b/src/rpc/fees.cpp
index aa047bdea8..e50bf00473 100644
--- a/src/rpc/fees.cpp
+++ b/src/rpc/fees.cpp
@@ -64,7 +64,6 @@ static RPCHelpMan estimatesmartfee()
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
{
RPCTypeCheck(request.params, {UniValue::VNUM, UniValue::VSTR});
- RPCTypeCheckArgument(request.params[0], UniValue::VNUM);
CBlockPolicyEstimator& fee_estimator = EnsureAnyFeeEstimator(request.context);
const NodeContext& node = EnsureAnyNodeContext(request.context);
@@ -157,7 +156,6 @@ static RPCHelpMan estimaterawfee()
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
{
RPCTypeCheck(request.params, {UniValue::VNUM, UniValue::VNUM}, true);
- RPCTypeCheckArgument(request.params[0], UniValue::VNUM);
CBlockPolicyEstimator& fee_estimator = EnsureAnyFeeEstimator(request.context);