diff options
| author | Jon Atack <[email protected]> | 2020-11-10 12:29:01 +0100 |
|---|---|---|
| committer | Jon Atack <[email protected]> | 2020-11-12 11:43:17 +0100 |
| commit | 449b730579566459e350703611629e63e54657ed (patch) | |
| tree | 0cd98fd3d8cb44d52df4221677fa387e9ecc2dd7 /src/rpc | |
| parent | wallet: update remaining rpcwallet fee rate units to BTC/kvB (diff) | |
| download | discoin-449b730579566459e350703611629e63e54657ed.tar.xz discoin-449b730579566459e350703611629e63e54657ed.zip | |
wallet: provide valid values if invalid estimate mode passed
Co-authored-by: Murch <[email protected]>
Diffstat (limited to 'src/rpc')
| -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 a561b7e93..6522c0d73 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -1070,7 +1070,7 @@ static RPCHelpMan estimatesmartfee() 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"); + throw JSONRPCError(RPC_INVALID_PARAMETER, InvalidEstimateModeErrorMessage()); } if (fee_mode == FeeEstimateMode::ECONOMICAL) conservative = false; } |