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
"\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)));
assert_raises_rpc_error(-8, "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.", rbf_node.bumpfee, rbfid, {"fee_rate":0.00001, "confTarget":1})
134
-
assert_raises_rpc_error(-8, "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.", rbf_node.bumpfee, rbfid, {"totalFee":0.00001, "confTarget":1})
135
-
assert_raises_rpc_error(-8, "fee_rate can't be set along with totalFee.", rbf_node.bumpfee, rbfid, {"fee_rate":0.00001, "totalFee":0.001})
133
+
assert_raises_rpc_error(-8, "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.", rbf_node.bumpfee, rbfid, {"fee_rate":NORMAL, "confTarget":1})
0 commit comments