@@ -530,6 +530,7 @@ void FundTransaction(CWallet& wallet, CMutableTransaction& tx, CAmount& fee_out,
530
530
{" subtract_fee_from_outputs" , UniValueType (UniValue::VARR)},
531
531
{" replaceable" , UniValueType (UniValue::VBOOL)},
532
532
{" conf_target" , UniValueType (UniValue::VNUM)},
533
+ {" min_conf" , UniValueType (UniValue::VNUM)},
533
534
{" estimate_mode" , UniValueType (UniValue::VSTR)},
534
535
{" minconf" , UniValueType (UniValue::VNUM)},
535
536
{" maxconf" , UniValueType (UniValue::VNUM)},
@@ -606,6 +607,12 @@ void FundTransaction(CWallet& wallet, CMutableTransaction& tx, CAmount& fee_out,
606
607
throw JSONRPCError (RPC_INVALID_PARAMETER, " Negative minconf" );
607
608
}
608
609
}
610
+ if (options.exists (" min_conf" )) {
611
+ if (options.exists (" minconf" )) {
612
+ throw JSONRPCError (RPC_INVALID_PARAMETER, " min_conf and minconf options should not both be set. Use minconf (min_conf is deprecated)." );
613
+ }
614
+ coinControl.m_min_depth = options[" min_conf" ].getInt <int >();
615
+ }
609
616
610
617
if (options.exists (" maxconf" )) {
611
618
coinControl.m_max_depth = options[" maxconf" ].getInt <int >();
0 commit comments