Skip to content

Commit

Permalink
GUI: Options: Remove the upper-bound limit from pruning size setting
Browse files Browse the repository at this point in the history
Hypothetically, someone may wish to begin pruning at a future blockchain size, and there's no reason to limit it lower

Github-Pull: bitcoin#15801
Rebased-From: 8a33f4d
Tree-SHA512: 814dc5f004c3418216a12f8e0ef1a8db2c586d98b515d48b31a8ccd7f4e0deb12b9f2b6110bf702576a32802ca1d30e518df5ad7c28046deb4d0e9be46a6e7b8
  • Loading branch information
luke-jr authored and uhliksk committed May 20, 2019
1 parent 3a0525b commit 11d4a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/optionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 11d4a12

Please sign in to comment.