Skip to content

Commit be481b7

Browse files
wallet: use MIN_RELAY_TX_FEE in bumpfee help
Co-authored-by: Murch <[email protected]>
1 parent 449b730 commit be481b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <util/translation.h>
2929
#include <util/url.h>
3030
#include <util/vector.h>
31+
#include <validation.h>
3132
#include <wallet/coincontrol.h>
3233
#include <wallet/context.h>
3334
#include <wallet/feebumper.h>
@@ -3377,6 +3378,7 @@ RPCHelpMan signrawtransactionwithwallet()
33773378
static RPCHelpMan bumpfee_helper(std::string method_name)
33783379
{
33793380
bool want_psbt = method_name == "psbtbumpfee";
3381+
const std::string incremental_fee{CFeeRate(DEFAULT_MIN_RELAY_TX_FEE).ToString(FeeEstimateMode::SAT_VB)};
33803382

33813383
return RPCHelpMan{method_name,
33823384
"\nBumps the fee of an opt-in-RBF transaction T, replacing it with a new transaction B.\n"
@@ -3399,7 +3401,7 @@ static RPCHelpMan bumpfee_helper(std::string method_name)
33993401
{"conf_target", RPCArg::Type::NUM, /* default */ "wallet -txconfirmtarget", "Confirmation target in blocks\n"},
34003402
{"fee_rate", RPCArg::Type::AMOUNT, /* default */ "not set, fall back to wallet fee estimation",
34013403
"\nSpecify a fee rate in " + CURRENCY_ATOM + "/vB instead of relying on the built-in fee estimator.\n"
3402-
"Must be at least 1 " + CURRENCY_ATOM + "/vB higher than the current transaction fee rate.\n"
3404+
"Must be at least " + incremental_fee + " " + CURRENCY_ATOM + "/vB higher than the current transaction fee rate.\n"
34033405
"WARNING: before version 0.21, fee_rate was in " + CURRENCY_UNIT + "/kvB. As of 0.21, fee_rate is in " + CURRENCY_ATOM + "/vB.\n"},
34043406
{"replaceable", RPCArg::Type::BOOL, /* default */ "true", "Whether the new transaction should still be\n"
34053407
"marked bip-125 replaceable. If true, the sequence numbers in the transaction will\n"

0 commit comments

Comments
 (0)