diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2019-04-11 23:44:48 +0000 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-04-18 17:47:10 +0200 |
commit | a58d80d1b261e8fb2a4199d6be8a68dc29df81f0 (patch) | |
tree | 19f00af64042063595e49a47e186c42dc69ad2d8 | |
parent | 55462077fdf8fc084a8b7190d608b8546a4ebf09 (diff) | |
download | bitcoin-a58d80d1b261e8fb2a4199d6be8a68dc29df81f0.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
Github-Pull: #15801
Rebased-From: 8a33f4d63f9944f4877b3e2814b1582e72ceaa71
Tree-SHA512: 814dc5f004c3418216a12f8e0ef1a8db2c586d98b515d48b31a8ccd7f4e0deb12b9f2b6110bf702576a32802ca1d30e518df5ad7c28046deb4d0e9be46a6e7b8
-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 b20a98bbab..40dc7bf400 100644 --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -156,7 +156,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()) |