@@ -2629,7 +2629,7 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
2629
2629
return NullUniValue;
2630
2630
}
2631
2631
2632
- if (request.fHelp || request.params .size () < 1 || request.params .size () > 2 )
2632
+ if (request.fHelp || request.params .size () < 1 || request.params .size () > 3 )
2633
2633
throw std::runtime_error (
2634
2634
" fundrawtransaction \" hexstring\" ( options )\n "
2635
2635
" \n Add inputs to a transaction until it has enough in value to meet its out value.\n "
@@ -2658,6 +2658,7 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
2658
2658
" Those recipients will receive less bitcoins than you enter in their corresponding amount field.\n "
2659
2659
" If no outputs are specified here, the sender pays the fee.\n "
2660
2660
" [vout_index,...]\n "
2661
+ " \" optIntoRbf\" (boolean, optional) Allow this transaction to be replaced by a transaction with higher fees\n "
2661
2662
" }\n "
2662
2663
" for backward compatibility: passing in a true instead of an object will result in {\" includeWatching\" :true}\n "
2663
2664
" \n Result:\n "
@@ -2709,6 +2710,7 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
2709
2710
{" reserveChangeKey" , UniValueType (UniValue::VBOOL)},
2710
2711
{" feeRate" , UniValueType ()}, // will be checked below
2711
2712
{" subtractFeeFromOutputs" , UniValueType (UniValue::VARR)},
2713
+ {" optIntoRbf" , UniValueType (UniValue::VBOOL)},
2712
2714
},
2713
2715
true , true );
2714
2716
@@ -2741,6 +2743,10 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
2741
2743
2742
2744
if (options.exists (" subtractFeeFromOutputs" ))
2743
2745
subtractFeeFromOutputs = options[" subtractFeeFromOutputs" ].get_array ();
2746
+
2747
+ if (options.exists (" optIntoRbf" )) {
2748
+ coinControl.signalRbf = options[" optIntoRbf" ].get_bool ();
2749
+ }
2744
2750
}
2745
2751
}
2746
2752
0 commit comments