mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-02-06 21:41:19 +00:00
fix: always check nDustLimit to be >= nHardDustLimit
Moves the check for parameter interaction between both dust limits to be done regardless of setting a custom soft dust limit.
This commit is contained in:
parent
c338c5e6c4
commit
e481bf28bb
12
src/init.cpp
12
src/init.cpp
@ -1048,15 +1048,15 @@ bool AppInitParameterInteraction()
|
||||
if (!ParseMoney(GetArg("-dustlimit", ""), n))
|
||||
return InitError(AmountErrMsg("dustlimit", GetArg("-dustlimit", "")));
|
||||
|
||||
if (n < nHardDustLimit)
|
||||
{
|
||||
n = nHardDustLimit;
|
||||
LogPrintf("Increasing -dustlimit to %s to match -harddustlimit\n", FormatMoney(nHardDustLimit));
|
||||
}
|
||||
|
||||
nDustLimit = n;
|
||||
}
|
||||
|
||||
if (nDustLimit < nHardDustLimit)
|
||||
{
|
||||
nDustLimit = nHardDustLimit;
|
||||
LogPrintf("Increasing -dustlimit to %s to match -harddustlimit\n", FormatMoney(nHardDustLimit));
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
if (!CWallet::ParameterInteraction())
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user