Skip to content

Commit 9f08780

Browse files
committed
Use the correct incremental fee constant in bumpfee help
and remove redundant units ("Must be at least 1.000 sat/vB sat/vB" -> "1.00 sat vB")
1 parent 3f1e10b commit 9f08780

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include <util/translation.h>
3030
#include <util/url.h>
3131
#include <util/vector.h>
32-
#include <validation.h>
3332
#include <wallet/coincontrol.h>
3433
#include <wallet/context.h>
3534
#include <wallet/feebumper.h>
@@ -3383,7 +3382,7 @@ RPCHelpMan signrawtransactionwithwallet()
33833382
static RPCHelpMan bumpfee_helper(std::string method_name)
33843383
{
33853384
bool want_psbt = method_name == "psbtbumpfee";
3386-
const std::string incremental_fee{CFeeRate(DEFAULT_MIN_RELAY_TX_FEE).ToString(FeeEstimateMode::SAT_VB)};
3385+
const std::string incremental_fee{CFeeRate(DEFAULT_INCREMENTAL_RELAY_FEE).ToString(FeeEstimateMode::SAT_VB)};
33873386

33883387
return RPCHelpMan{method_name,
33893388
"\nBumps the fee of an opt-in-RBF transaction T, replacing it with a new transaction B.\n"
@@ -3406,7 +3405,7 @@ static RPCHelpMan bumpfee_helper(std::string method_name)
34063405
{"conf_target", RPCArg::Type::NUM, /* default */ "wallet -txconfirmtarget", "Confirmation target in blocks\n"},
34073406
{"fee_rate", RPCArg::Type::AMOUNT, /* default */ "not set, fall back to wallet fee estimation",
34083407
"\nSpecify a fee rate in " + CURRENCY_ATOM + "/vB instead of relying on the built-in fee estimator.\n"
3409-
"Must be at least " + incremental_fee + " " + CURRENCY_ATOM + "/vB higher than the current transaction fee rate.\n"
3408+
"Must be at least " + incremental_fee + " higher than the current transaction fee rate.\n"
34103409
"WARNING: before version 0.21, fee_rate was in " + CURRENCY_UNIT + "/kvB. As of 0.21, fee_rate is in " + CURRENCY_ATOM + "/vB.\n"},
34113410
{"replaceable", RPCArg::Type::BOOL, /* default */ "true", "Whether the new transaction should still be\n"
34123411
"marked bip-125 replaceable. If true, the sequence numbers in the transaction will\n"

0 commit comments

Comments
 (0)