Adding startup logic where -paytxfee if lower than default, implies -mintxfee is also lowered.
This commit is contained in:
parent
6150f6717a
commit
57303f1c06
|
@ -3894,6 +3894,13 @@ bool CWallet::ParameterInteraction()
|
||||||
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s' (must be at least %s)"),
|
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s' (must be at least %s)"),
|
||||||
GetArg("-paytxfee", ""), ::minRelayTxFeeRate.ToString()));
|
GetArg("-paytxfee", ""), ::minRelayTxFeeRate.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if -mintxfee is not set, then a lower payTxFee overrides minTxFee
|
||||||
|
if (!IsArgSet("-mintxfee") && payTxFee < CWallet::minTxFee)
|
||||||
|
{
|
||||||
|
LogPrintf("%s: parameter interaction: -paytxfee=%s -> setting -mintxfee=%s\n", __func__, GetArg("-paytxfee",""), GetArg("-paytxfee",""));
|
||||||
|
CWallet:minTxFee = CFeeRate(nFeePerK,1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (IsArgSet("-maxtxfee"))
|
if (IsArgSet("-maxtxfee"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue