Skip to content

Commit

Permalink
fix: persist coinjoin denoms options from gui over restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
PastaPastaPasta committed Aug 13, 2024
1 parent 8f7dd9c commit 55a3b6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/qt/optionsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ void OptionsModel::Init(bool resetSettings)

if (!settings.contains("nCoinJoinDenomsHardCap"))
settings.setValue("nCoinJoinDenomsHardCap", DEFAULT_COINJOIN_DENOMS_HARDCAP);

if (!gArgs.SoftSetArg("-coinjoindenomsgoal", settings.value("nCoinJoinDenomsGoal").toString().toStdString()))
addOverriddenOption("-coinjoindenomsgoal");
if (!gArgs.SoftSetArg("-coinjoindenomshardcap", settings.value("nCoinJoinDenomsHardCap").toString().toStdString()))
addOverriddenOption("-coinjoindenomshardcap");
#endif

// Network
Expand Down

0 comments on commit 55a3b6d

Please sign in to comment.