Skip to content

Commit

Permalink
qt: use addOverriddenOption only if SoftSetBoolArg fails, remove log
Browse files Browse the repository at this point in the history
The startup warning that alerts us that governance is disabled and that
it's expected when we're pruning is sufficient.
  • Loading branch information
kwvg committed Oct 27, 2024
1 parent dbda09d commit f139c75
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/qt/optionsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,10 @@ void OptionsModel::Init(bool resetSettings)

// If GUI is setting prune, then we also must set disablegovernance and txindex
if (settings.value("bPrune").toBool()) {
if (gArgs.SoftSetBoolArg("-disablegovernance", true)) {
LogPrintf("%s: parameter interaction: -prune=true -> setting -disablegovernance=true\n", __func__);
if (!gArgs.SoftSetBoolArg("-disablegovernance", true)) {
addOverriddenOption("-disablegovernance");
}
if (gArgs.SoftSetBoolArg("-txindex", false)) {
LogPrintf("%s: parameter interaction: -prune=true -> setting -txindex=false\n", __func__);
if (!gArgs.SoftSetBoolArg("-txindex", false)) {
addOverriddenOption("-txindex");
}
}
Expand Down

0 comments on commit f139c75

Please sign in to comment.