aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-10-24 19:48:04 +0200
committerJon Atack <jon@atack.com>2020-10-25 00:35:38 +0200
commitfc5721723d34f76f9e1ffd2e31f274ea6b22f894 (patch)
tree83da373059ecdf20290f7b7a8ba76a4971fd1fc1 /src/wallet/rpcwallet.cpp
parent052427eef1c9da84c474c5161b1910d3328ef0da (diff)
wallet: fix SetFeeEstimateMode() error message
to clarify for the user the confusing error message that the missing fee rate needs to be set in the conf_target param/option.
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index 46e27bb4bf..614227fde2 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -214,7 +214,7 @@ static void SetFeeEstimateMode(const CWallet* pwallet, CCoinControl& cc, const U
if (cc.m_fee_mode == FeeEstimateMode::BTC_KB || cc.m_fee_mode == FeeEstimateMode::SAT_B) {
if (estimate_param.isNull()) {
- throw JSONRPCError(RPC_INVALID_PARAMETER, "Selected estimate_mode requires a fee rate");
+ throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Selected estimate_mode %s requires a fee rate to be specified in conf_target", estimate_mode.get_str()));
}
CAmount fee_rate = AmountFromValue(estimate_param);