Skip to content

Commit 8a33f4d

Browse files
committed
GUI: Options: Remove the upper-bound limit from pruning size setting
Hypothetically, someone may wish to begin pruning at a future blockchain size, and there's no reason to limit it lower
1 parent 4ddeb2f commit 8a33f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/optionsdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void OptionsDialog::setModel(OptionsModel *_model)
150150

151151
// Prune values are in GB to be consistent with intro.cpp
152152
static constexpr uint64_t nMinDiskSpace = (MIN_DISK_SPACE_FOR_BLOCK_FILES / GB_BYTES) + (MIN_DISK_SPACE_FOR_BLOCK_FILES % GB_BYTES) ? 1 : 0;
153-
ui->pruneSize->setRange(nMinDiskSpace, _model->node().getAssumedBlockchainSize());
153+
ui->pruneSize->setRange(nMinDiskSpace, std::numeric_limits<int>::max());
154154

155155
QString strLabel = _model->getOverriddenByCommandLine();
156156
if (strLabel.isEmpty())

0 commit comments

Comments
 (0)