Changeset View
Changeset View
Standalone View
Standalone View
src/qt/intro.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include <config/bitcoin-config.h> | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include <fs.h> | #include <fs.h> | ||||
#include <interfaces/node.h> | #include <interfaces/node.h> | ||||
#include <qt/forms/ui_intro.h> | #include <qt/forms/ui_intro.h> | ||||
#include <qt/guiconstants.h> | |||||
#include <qt/guiutil.h> | #include <qt/guiutil.h> | ||||
#include <qt/intro.h> | #include <qt/intro.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <QFileDialog> | #include <QFileDialog> | ||||
#include <QMessageBox> | #include <QMessageBox> | ||||
#include <QSettings> | #include <QSettings> | ||||
#include <cmath> | #include <cmath> | ||||
static const uint64_t GB_BYTES = 1000000000LL; | |||||
/** | /** | ||||
* Total required space (in GB) depending on user choice (prune, not prune). | * Total required space (in GB) depending on user choice (prune, not prune). | ||||
*/ | */ | ||||
static uint64_t requiredSpace; | static uint64_t requiredSpace; | ||||
/* Check free space asynchronously to prevent hanging the UI thread. | /* Check free space asynchronously to prevent hanging the UI thread. | ||||
Up to one request to check a path is in flight to this thread; when the | Up to one request to check a path is in flight to this thread; when the | ||||
▲ Show 20 Lines • Show All 308 Lines • Show Last 20 Lines |