You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #18312: wallet: remove deprecated fee bumping by totalFee
c3857c5 wallet: remove CreateTotalBumpTransaction() (Jon Atack)
4a0b27b wallet: remove totalfee from createBumpTransaction() (Jon Atack)
e347cfa rpc: remove deprecated totalFee arg from RPC bumpfee (Jon Atack)
bd05f96 test: delete wallet_bumpfee_totalfee_deprecation.py (Jon Atack)
a6d1ab8 test: update bumpfee testing from totalFee to fee_rate (Jon Atack)
Pull request description:
Since 0.19, fee-bumping using `totalFee` was deprecated in #15996 and replaced by `fee_rate` in #16727. This changeset removes it.
ACKs for top commit:
laanwj:
ACK c3857c5
Tree-SHA512: c1bb15d664baf4d2dea06981f36384af02057d125c51fcbc8640b9d5563532187c7b84aa952f7b575255a88ce383ed4d7495bec920a47b05b6fc0d432dce1f00
"\nBumps the fee of an opt-in-RBF transaction T, replacing it with a new transaction B.\n"
3343
3343
"An opt-in RBF transaction with the given txid must be in the wallet.\n"
3344
3344
"The command will pay the additional fee by reducing change outputs or adding inputs when necessary. It may add a new change output if one does not already exist.\n"
3345
-
"If `totalFee` (DEPRECATED) is given, adding inputs is not supported, so there must be a single change output that is big enough or it will fail.\n"
3346
3345
"All inputs in the original transaction will be included in the replacement transaction.\n"
3347
3346
"The command will fail if the wallet or mempool contains a transaction that spends one of T's outputs.\n"
3348
3347
"By default, the new fee will be calculated automatically using estimatesmartfee.\n"
3349
3348
"The user can specify a confirmation target for estimatesmartfee.\n"
3350
-
"Alternatively, the user can specify totalFee (DEPRECATED), or fee_rate (" + CURRENCY_UNIT + " per kB) for the new transaction.\n"
3349
+
"Alternatively, the user can specify a fee_rate (" + CURRENCY_UNIT + " per kB) for the new transaction.\n"
3351
3350
"At a minimum, the new fee rate must be high enough to pay an additional new relay fee (incrementalfee\n"
3352
3351
"returned by getnetworkinfo) to enter the node's mempool.\n",
3353
3352
{
3354
3353
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The txid to be bumped"},
if (options.exists("confTarget") && (options.exists("totalFee") || options.exists("fee_rate"))) {
3418
-
throwJSONRPCError(RPC_INVALID_PARAMETER, "confTarget can't be set with totalFee or fee_rate. Please provide either a confirmation target in blocks for automatic fee estimation, or an explicit fee rate.");
throwJSONRPCError(RPC_INVALID_PARAMETER, "fee_rate can't be set along with totalFee.");
3410
+
if (options.exists("confTarget") && options.exists("fee_rate")) {
3411
+
throwJSONRPCError(RPC_INVALID_PARAMETER, "confTarget can't be set with fee_rate. Please provide either a confirmation target in blocks for automatic fee estimation, or an explicit fee rate.");
3421
3412
} elseif (options.exists("confTarget")) { // TODO: alias this to conf_target
if (!pwallet->chain().rpcEnableDeprecated("totalFee")) {
3425
-
throwJSONRPCError(RPC_INVALID_PARAMETER, "totalFee argument has been deprecated and will be removed in 0.20. Please use -deprecatedrpc=totalFee to continue using this argument until removal.");
3426
-
}
3427
-
totalFee = options["totalFee"].get_int64();
3428
-
if (totalFee <= 0) {
3429
-
throwJSONRPCError(RPC_INVALID_PARAMETER, strprintf("Invalid totalFee %s (must be greater than 0)", FormatMoney(totalFee)));
0 commit comments