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
if (options.exists("confTarget") && options.exists("fee_rate")) {
3303
-
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.");
3304
-
} elseif (options.exists("confTarget")) { // TODO: alias this to conf_target
if (options.exists("confTarget") && options.exists("conf_target")) {
3305
+
throwJSONRPCError(RPC_INVALID_PARAMETER, "confTarget and conf_target options should not both be set. Use conf_target (confTarget is deprecated).");
3306
+
}
3307
+
3308
+
auto conf_target = options.exists("confTarget") ? options["confTarget"] : options["conf_target"];
3309
+
3310
+
if (!conf_target.isNull()) {
3311
+
if (options.exists("fee_rate")) {
3312
+
throwJSONRPCError(RPC_INVALID_PARAMETER, "conf_target can't be set with fee_rate. Please provide either a confirmation target in blocks for automatic fee estimation, or an explicit fee rate.");
0 commit comments