Skip to content

Commit d8fca38

Browse files
Merge #6208: fix: persist coinjoin denoms options from gui over restarts
3ec0c8c fix: persist coinjoin denoms and sessions options from gui over restarts (pasta) Pull request description: ## Issue being fixed or feature implemented Persist coinjoin denoms over restarts, fixes #5975 ## What was done? Soft set the argument into the daemon from GUI settings ## How Has This Been Tested? follow procedure in 5975 ## Breaking Changes ## Checklist: _Go over all the following points, and put an `x` in all the boxes that apply._ - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: knst: utACK 3ec0c8c UdjinM6: utACK 3ec0c8c Tree-SHA512: b7378460b3990713b755f36de506b94e7d0005f19cf1155f2fc12191ba03f2e16c35049ddbd89f578acd89bc8eae5e432913114e1ff5ef7ab2cc30628aeff3f2
2 parents 6eb6982 + 3ec0c8c commit d8fca38

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/qt/optionsmodel.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ void OptionsModel::Init(bool resetSettings)
224224
// CoinJoin
225225
if (!settings.contains("nCoinJoinSessions"))
226226
settings.setValue("nCoinJoinSessions", DEFAULT_COINJOIN_SESSIONS);
227+
if (!gArgs.SoftSetArg("-coinjoinsessions", settings.value("nCoinJoinSessions").toString().toStdString()))
228+
addOverriddenOption("-coinjoinsessions");
227229

228230
if (!settings.contains("nCoinJoinRounds"))
229231
settings.setValue("nCoinJoinRounds", DEFAULT_COINJOIN_ROUNDS);
@@ -247,9 +249,13 @@ void OptionsModel::Init(bool resetSettings)
247249

248250
if (!settings.contains("nCoinJoinDenomsGoal"))
249251
settings.setValue("nCoinJoinDenomsGoal", DEFAULT_COINJOIN_DENOMS_GOAL);
252+
if (!gArgs.SoftSetArg("-coinjoindenomsgoal", settings.value("nCoinJoinDenomsGoal").toString().toStdString()))
253+
addOverriddenOption("-coinjoindenomsgoal");
250254

251255
if (!settings.contains("nCoinJoinDenomsHardCap"))
252256
settings.setValue("nCoinJoinDenomsHardCap", DEFAULT_COINJOIN_DENOMS_HARDCAP);
257+
if (!gArgs.SoftSetArg("-coinjoindenomshardcap", settings.value("nCoinJoinDenomsHardCap").toString().toStdString()))
258+
addOverriddenOption("-coinjoindenomshardcap");
253259
#endif
254260

255261
// Network

0 commit comments

Comments
 (0)