aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2017-02-08 04:00:16 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2017-02-08 18:51:05 +0000
commit93ffba7163b4f3c0262c58c1e76e252350e4260e (patch)
tree03d387e395a9ad84798e40cfb895bd20530a1acd /src
parentc8cee26100c4f5196aff452d75a24ea7f1135595 (diff)
downloadbitcoin-93ffba7163b4f3c0262c58c1e76e252350e4260e.tar.xz
Bugfix: Qt/Intro: Chain state needs to be stored even with the full blockchain
Diffstat (limited to 'src')
-rw-r--r--src/qt/intro.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp
index 9c2aab602b..e45ba2d151 100644
--- a/src/qt/intro.cpp
+++ b/src/qt/intro.cpp
@@ -126,8 +126,10 @@ Intro::Intro(QWidget *parent) :
ui->storageLabel->setText(ui->storageLabel->text().arg(tr(PACKAGE_NAME)));
uint64_t pruneTarget = std::max<int64_t>(0, GetArg("-prune", 0));
requiredSpace = BLOCK_CHAIN_SIZE;
- if (pruneTarget)
- requiredSpace = CHAIN_STATE_SIZE + std::ceil(pruneTarget * 1024 * 1024.0 / GB_BYTES);
+ if (pruneTarget) {
+ requiredSpace = std::ceil(pruneTarget * 1024 * 1024.0 / GB_BYTES);
+ }
+ requiredSpace += CHAIN_STATE_SIZE;
ui->sizeWarningLabel->setText(ui->sizeWarningLabel->text().arg(tr(PACKAGE_NAME)).arg(requiredSpace));
startThread();
}