Skip to content

Commit

Permalink
chore: remove ancient setting migration logic
Browse files Browse the repository at this point in the history
This code in its original form was first introduced in 0.12 (bbbbdd8)
and in its current form 0.17 (ae506ba) and has survived rebrandings.
Time to retire it.
  • Loading branch information
kwvg committed Sep 13, 2024
1 parent 56971f3 commit bd4206f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/qt/optionsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,8 @@ void OptionsModel::Init(bool resetSettings)
if (!gArgs.SoftSetArg("-coinjoinrounds", settings.value("nCoinJoinRounds").toString().toStdString()))
addOverriddenOption("-coinjoinrounds");

if (!settings.contains("nCoinJoinAmount")) {
// for migration from old settings
if (!settings.contains("nAnonymizeDashAmount"))
settings.setValue("nCoinJoinAmount", DEFAULT_COINJOIN_AMOUNT);
else
settings.setValue("nCoinJoinAmount", settings.value("nAnonymizeDashAmount").toInt());
}
if (!settings.contains("nCoinJoinAmount"))
settings.setValue("nCoinJoinAmount", DEFAULT_COINJOIN_AMOUNT);
if (!gArgs.SoftSetArg("-coinjoinamount", settings.value("nCoinJoinAmount").toString().toStdString()))
addOverriddenOption("-coinjoinamount");

Expand Down

0 comments on commit bd4206f

Please sign in to comment.