diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -161,6 +161,14 @@ showRestartWarning(true); } + // Prune values are in GB to be consistent with intro.cpp + static constexpr uint64_t nMinDiskSpace = + (MIN_DISK_SPACE_FOR_BLOCK_FILES / GB_BYTES) + + (MIN_DISK_SPACE_FOR_BLOCK_FILES % GB_BYTES) + ? 1 + : 0; + ui->pruneSize->setRange(nMinDiskSpace, std::numeric_limits::max()); + QString strLabel = _model->getOverriddenByCommandLine(); if (strLabel.isEmpty()) { strLabel = tr("none"); @@ -172,15 +180,6 @@ mapper->toFirst(); updateDefaultProxyNets(); - - // Prune values are in GB to be consistent with intro.cpp - static constexpr uint64_t nMinDiskSpace = - (MIN_DISK_SPACE_FOR_BLOCK_FILES / GB_BYTES) + - (MIN_DISK_SPACE_FOR_BLOCK_FILES % GB_BYTES) - ? 1 - : 0; - ui->pruneSize->setRange(nMinDiskSpace, - _model->node().getAssumedBlockchainSize()); } /* warn when one of the following settings changes by user action (placed