Skip to content

Commit 50c5657

Browse files
committed
Qt/Intro: Storage shouldn't grow significantly with pruning enabled
1 parent 9adb694 commit 50c5657

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/qt/intro.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,18 @@ 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+
QString storageRequiresMsg = tr("At least %1 GB of data will be stored in this directory, and it will grow over time.");
129130
if (pruneTarget) {
130131
uint64_t prunedGBs = std::ceil(pruneTarget * 1024 * 1024.0 / GB_BYTES);
131132
if (prunedGBs <= requiredSpace) {
132133
requiredSpace = prunedGBs;
134+
storageRequiresMsg = tr("Approximately %1 GB of data will be stored in this directory.");
133135
}
134136
}
135137
requiredSpace += CHAIN_STATE_SIZE;
136138
ui->sizeWarningLabel->setText(
137139
tr("%1 will download and store a copy of the Bitcoin block chain.").arg(tr(PACKAGE_NAME)) + " " +
138-
tr("At least %1 GB of data will be stored in this directory, and it will grow over time.").arg(requiredSpace) + " " +
140+
storageRequiresMsg.arg(requiredSpace) + " " +
139141
tr("The wallet will also be stored in this directory.")
140142
);
141143
startThread();

0 commit comments

Comments
 (0)