Skip to content

Commit fb915d5

Browse files
committed
Use "replaceable" instead of "optIntoRbf" in fundrawtransaction.
To be consistent with other RPCs
1 parent 928c681 commit fb915d5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,8 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
26552655
" Those recipients will receive less bitcoins than you enter in their corresponding amount field.\n"
26562656
" If no outputs are specified here, the sender pays the fee.\n"
26572657
" [vout_index,...]\n"
2658-
" \"optIntoRbf\" (boolean, optional) Allow this transaction to be replaced by a transaction with higher fees\n"
2658+
" \"replaceable\" (boolean, optional) Marks this transaction as BIP125 replaceable.\n"
2659+
" Allows this transaction to be replaced by a transaction with higher fees\n"
26592660
" }\n"
26602661
" for backward compatibility: passing in a true instead of an object will result in {\"includeWatching\":true}\n"
26612662
"\nResult:\n"
@@ -2707,7 +2708,7 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
27072708
{"reserveChangeKey", UniValueType(UniValue::VBOOL)},
27082709
{"feeRate", UniValueType()}, // will be checked below
27092710
{"subtractFeeFromOutputs", UniValueType(UniValue::VARR)},
2710-
{"optIntoRbf", UniValueType(UniValue::VBOOL)},
2711+
{"replaceable", UniValueType(UniValue::VBOOL)},
27112712
},
27122713
true, true);
27132714

@@ -2741,8 +2742,8 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
27412742
if (options.exists("subtractFeeFromOutputs"))
27422743
subtractFeeFromOutputs = options["subtractFeeFromOutputs"].get_array();
27432744

2744-
if (options.exists("optIntoRbf")) {
2745-
coinControl.signalRbf = options["optIntoRbf"].get_bool();
2745+
if (options.exists("replaceable")) {
2746+
coinControl.signalRbf = options["replaceable"].get_bool();
27462747
}
27472748
}
27482749
}

0 commit comments

Comments
 (0)