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
const std::string current_setting{strprintf("The current setting of %s for this wallet remains unchanged.", wallet.m_pay_tx_fee == zero ? "0 (unset)" : wallet.m_pay_tx_fee.ToString(FeeEstimateMode::SAT_VB))};
2396
+
std::string result, error;
2397
+
2398
+
if (amount == zero) {
2399
+
if (request.params[0].get_real() != 0) throwJSONRPCError(RPC_TYPE_ERROR, "Invalid amount");
2400
+
wallet.m_pay_tx_fee = amount;
2401
+
result = "Fee rate for transactions with this wallet successfully unset. By default, automatic fee selection will be used.";
2402
+
} elseif (amount < relay_min_feerate) {
2403
+
error = strprintf("The requested fee rate of %s cannot be less than the minimum relay fee rate of %s. %s", amount_str, relay_min_feerate.ToString(FeeEstimateMode::SAT_VB), current_setting);
2404
+
} elseif (amount < wallet_min_feerate) {
2405
+
error = strprintf("The requested fee rate of %s cannot be less than the wallet min fee rate of %s. %s", amount_str, wallet_min_feerate.ToString(FeeEstimateMode::SAT_VB), current_setting);
2406
+
} elseif (amount > wallet_max_feerate) {
2407
+
error = strprintf("The requested fee rate of %s cannot be greater than the wallet max fee rate of %s. %s", amount_str, wallet_max_feerate.ToString(FeeEstimateMode::SAT_VB), current_setting);
2408
+
} else {
2409
+
wallet.m_pay_tx_fee = amount;
2410
+
result = "Fee rate for transactions with this wallet successfully set to " + amount_str;
0 commit comments