|
|
|
@ -126,16 +126,18 @@ Intro::Intro(QWidget *parent) :
@@ -126,16 +126,18 @@ 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; |
|
|
|
|
QString storageRequiresMsg = tr("At least %1 GB of data will be stored in this directory, and it will grow over time."); |
|
|
|
|
if (pruneTarget) { |
|
|
|
|
uint64_t prunedGBs = std::ceil(pruneTarget * 1024 * 1024.0 / GB_BYTES); |
|
|
|
|
if (prunedGBs <= requiredSpace) { |
|
|
|
|
requiredSpace = prunedGBs; |
|
|
|
|
storageRequiresMsg = tr("Approximately %1 GB of data will be stored in this directory."); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
requiredSpace += CHAIN_STATE_SIZE; |
|
|
|
|
ui->sizeWarningLabel->setText( |
|
|
|
|
tr("%1 will download and store a copy of the Bitcoin block chain.").arg(tr(PACKAGE_NAME)) + " " + |
|
|
|
|
tr("At least %1 GB of data will be stored in this directory, and it will grow over time.").arg(requiredSpace) + " " + |
|
|
|
|
storageRequiresMsg.arg(requiredSpace) + " " + |
|
|
|
|
tr("The wallet will also be stored in this directory.") |
|
|
|
|
); |
|
|
|
|
startThread(); |
|
|
|
|