From 93ffba7163b4f3c0262c58c1e76e252350e4260e Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Wed, 8 Feb 2017 04:00:16 +0000 Subject: [PATCH] Bugfix: Qt/Intro: Chain state needs to be stored even with the full blockchain --- src/qt/intro.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index 9c2aab602..e45ba2d15 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(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(); }