Skip to content

Commit 8f52983

Browse files
committed
qt: use addOverriddenOption only if SoftSetBoolArg fails, remove log
The startup warning that alerts us that governance is disabled and that it's expected when we're pruning is sufficient.
1 parent 108ffb9 commit 8f52983

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/qt/optionsmodel.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,10 @@ void OptionsModel::Init(bool resetSettings)
192192

193193
// If GUI is setting prune, then we also must set disablegovernance and txindex
194194
if (settings.value("bPrune").toBool()) {
195-
if (gArgs.SoftSetBoolArg("-disablegovernance", true)) {
196-
LogPrintf("%s: parameter interaction: -prune=true -> setting -disablegovernance=true\n", __func__);
195+
if (!gArgs.SoftSetBoolArg("-disablegovernance", true)) {
197196
addOverriddenOption("-disablegovernance");
198197
}
199-
if (gArgs.SoftSetBoolArg("-txindex", false)) {
200-
LogPrintf("%s: parameter interaction: -prune=true -> setting -txindex=false\n", __func__);
198+
if (!gArgs.SoftSetBoolArg("-txindex", false)) {
201199
addOverriddenOption("-txindex");
202200
}
203201
}

0 commit comments

Comments
 (0)