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/wallet | |
| 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/wallet')
| -rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 1725bba71..45451db96 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -221,7 +221,7 @@ static void SetFeeEstimateMode(const CWallet* pwallet, CCoinControl& cc, const U return; } if (!estimate_mode.isNull() && !FeeModeFromString(estimate_mode.get_str(), cc.m_fee_mode)) { - throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid estimate_mode parameter"); + throw JSONRPCError(RPC_INVALID_PARAMETER, InvalidEstimateModeErrorMessage()); } if (!conf_target.isNull()) { cc.m_confirm_target = ParseConfirmTarget(conf_target, pwallet->chain().estimateMaxBlocks()); |