diff options
| author | Russell Yanofsky <[email protected]> | 2017-08-14 19:38:18 -0400 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2017-08-14 19:38:18 -0400 |
| commit | e666efcdba527a58175f9de3357dd19bb5880178 (patch) | |
| tree | 560a1791dfa656ca7ff73af35b039e5dd9fc50db /src/rpc/mining.cpp | |
| parent | Merge #10607: scripted-diff: stop using the gArgs wrappers (diff) | |
| download | discoin-e666efcdba527a58175f9de3357dd19bb5880178.tar.xz discoin-e666efcdba527a58175f9de3357dd19bb5880178.zip | |
Get rid of redundant RPC params.size() checks
No change in behavior.
Diffstat (limited to 'src/rpc/mining.cpp')
| -rw-r--r-- | src/rpc/mining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index f498b5c8e..a6950899f 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -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"); |