Skip to content

Commit b7994c0

Browse files
committed
wallet: add fee_rate unit warnings to bumpfee
1 parent 410e471 commit b7994c0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3391,9 +3391,10 @@ static RPCHelpMan bumpfee_helper(std::string method_name)
33913391
"The command will fail if the wallet or mempool contains a transaction that spends one of T's outputs.\n"
33923392
"By default, the new fee will be calculated automatically using the estimatesmartfee RPC.\n"
33933393
"The user can specify a confirmation target for estimatesmartfee.\n"
3394-
"Alternatively, the user can specify a fee_rate (in " + CURRENCY_ATOM + "/vB) for the new transaction.\n"
3394+
"Alternatively, the user can specify a fee rate in " + CURRENCY_ATOM + "/vB for the new transaction.\n"
33953395
"At a minimum, the new fee rate must be high enough to pay an additional new relay fee (incrementalfee\n"
3396-
"returned by getnetworkinfo) to enter the node's mempool.\n",
3396+
"returned by getnetworkinfo) to enter the node's mempool.\n"
3397+
"* WARNING: before version 0.21, fee_rate was in " + CURRENCY_UNIT + "/kvB. As of 0.21, fee_rate is in " + CURRENCY_ATOM + "/vB. *\n",
33973398
{
33983399
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The txid to be bumped"},
33993400
{"options", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED_NAMED_ARG, "",
@@ -3402,7 +3403,8 @@ static RPCHelpMan bumpfee_helper(std::string method_name)
34023403
"or fee rate (for " + CURRENCY_UNIT + "/kB and " + CURRENCY_ATOM + "/B estimate modes)"},
34033404
{"fee_rate", RPCArg::Type::AMOUNT, /* default */ "not set, fall back to wallet fee estimation",
34043405
"\nSpecify a fee rate in " + CURRENCY_ATOM + "/vB instead of relying on the built-in fee estimator.\n"
3405-
"Must be at least 1 " + CURRENCY_ATOM + "/vB higher than the current transaction fee rate.\n"},
3406+
"Must be at least 1 " + CURRENCY_ATOM + "/vB higher than the current transaction fee rate.\n"
3407+
"WARNING: before version 0.21, fee_rate was in " + CURRENCY_UNIT + "/kvB. As of 0.21, fee_rate is in " + CURRENCY_ATOM + "/vB.\n"},
34063408
{"replaceable", RPCArg::Type::BOOL, /* default */ "true", "Whether the new transaction should still be\n"
34073409
"marked bip-125 replaceable. If true, the sequence numbers in the transaction will\n"
34083410
"be left unchanged from the original. If false, any input sequence numbers in the\n"

0 commit comments

Comments
 (0)