mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
chore: remove ancient setting migration logic
This code in its original form was first introduced in 0.12 (bbbbdd81
) and in its current form 0.17 (ae506bae6
) and has survived rebrandings. Time to retire it.
This commit is contained in:
parent
061aa05cf0
commit
77ce6af5c1
@ -232,13 +232,8 @@ void OptionsModel::Init(bool resetSettings)
|
|||||||
if (!gArgs.SoftSetArg("-coinjoinrounds", settings.value("nCoinJoinRounds").toString().toStdString()))
|
if (!gArgs.SoftSetArg("-coinjoinrounds", settings.value("nCoinJoinRounds").toString().toStdString()))
|
||||||
addOverriddenOption("-coinjoinrounds");
|
addOverriddenOption("-coinjoinrounds");
|
||||||
|
|
||||||
if (!settings.contains("nCoinJoinAmount")) {
|
if (!settings.contains("nCoinJoinAmount"))
|
||||||
// for migration from old settings
|
settings.setValue("nCoinJoinAmount", DEFAULT_COINJOIN_AMOUNT);
|
||||||
if (!settings.contains("nAnonymizeDashAmount"))
|
|
||||||
settings.setValue("nCoinJoinAmount", DEFAULT_COINJOIN_AMOUNT);
|
|
||||||
else
|
|
||||||
settings.setValue("nCoinJoinAmount", settings.value("nAnonymizeDashAmount").toInt());
|
|
||||||
}
|
|
||||||
if (!gArgs.SoftSetArg("-coinjoinamount", settings.value("nCoinJoinAmount").toString().toStdString()))
|
if (!gArgs.SoftSetArg("-coinjoinamount", settings.value("nCoinJoinAmount").toString().toStdString()))
|
||||||
addOverriddenOption("-coinjoinamount");
|
addOverriddenOption("-coinjoinamount");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user