diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2019-04-11 23:44:48 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2019-04-11 23:44:48 +0000 |
commit | 8a33f4d63f9944f4877b3e2814b1582e72ceaa71 (patch) | |
tree | d0fccebe9667d017b5fb0a9dad1927559778127b /src/qt | |
parent | 4ddeb2f860eee98fbe94725ea8885368068a03f2 (diff) | |
download | bitcoin-8a33f4d63f9944f4877b3e2814b1582e72ceaa71.tar.xz |
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
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/optionsdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp index 64e6f28ab2..fd42fd494c 100644 --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -150,7 +150,7 @@ void OptionsDialog::setModel(OptionsModel *_model) // 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()); + ui->pruneSize->setRange(nMinDiskSpace, std::numeric_limits<int>::max()); QString strLabel = _model->getOverriddenByCommandLine(); if (strLabel.isEmpty()) |