mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Get rid of redundant RPC params.size() checks
No change in behavior.
This commit is contained in:
parent
c2704ec98a
commit
e666efcdba
6 changed files with 33 additions and 33 deletions
|
|
@ -842,7 +842,7 @@ UniValue estimatesmartfee(const JSONRPCRequest& request)
|
|||
RPCTypeCheckArgument(request.params[0], UniValue::VNUM);
|
||||
unsigned int conf_target = ParseConfirmTarget(request.params[0]);
|
||||
bool conservative = true;
|
||||
if (request.params.size() > 1 && !request.params[1].isNull()) {
|
||||
if (!request.params[1].isNull()) {
|
||||
FeeEstimateMode fee_mode;
|
||||
if (!FeeModeFromString(request.params[1].get_str(), fee_mode)) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid estimate_mode parameter");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue