Skip to content

Commit 93ffba7

Browse files
committed
Bugfix: Qt/Intro: Chain state needs to be stored even with the full blockchain
1 parent c8cee26 commit 93ffba7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/qt/intro.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ Intro::Intro(QWidget *parent) :
126126
ui->storageLabel->setText(ui->storageLabel->text().arg(tr(PACKAGE_NAME)));
127127
uint64_t pruneTarget = std::max<int64_t>(0, GetArg("-prune", 0));
128128
requiredSpace = BLOCK_CHAIN_SIZE;
129-
if (pruneTarget)
130-
requiredSpace = CHAIN_STATE_SIZE + std::ceil(pruneTarget * 1024 * 1024.0 / GB_BYTES);
129+
if (pruneTarget) {
130+
requiredSpace = std::ceil(pruneTarget * 1024 * 1024.0 / GB_BYTES);
131+
}
132+
requiredSpace += CHAIN_STATE_SIZE;
131133
ui->sizeWarningLabel->setText(ui->sizeWarningLabel->text().arg(tr(PACKAGE_NAME)).arg(requiredSpace));
132134
startThread();
133135
}

0 commit comments

Comments
 (0)