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