Do diskspace check before import thread is started
This commit is contained in:
parent
aa59f2ed3f
commit
9d4eb9ad99
1 changed files with 3 additions and 3 deletions
|
@ -1418,6 +1418,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||||
|
|
||||||
// ********************************************************* Step 10: import blocks
|
// ********************************************************* Step 10: import blocks
|
||||||
|
|
||||||
|
if (!CheckDiskSpace())
|
||||||
|
return false;
|
||||||
|
|
||||||
// Either install a handler to notify us when genesis activates, or set fHaveGenesis directly.
|
// Either install a handler to notify us when genesis activates, or set fHaveGenesis directly.
|
||||||
// No locking, as this happens before any background thread is started.
|
// No locking, as this happens before any background thread is started.
|
||||||
if (chainActive.Tip() == NULL) {
|
if (chainActive.Tip() == NULL) {
|
||||||
|
@ -1449,9 +1452,6 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||||
|
|
||||||
// ********************************************************* Step 11: start node
|
// ********************************************************* Step 11: start node
|
||||||
|
|
||||||
if (!CheckDiskSpace())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (!strErrors.str().empty())
|
if (!strErrors.str().empty())
|
||||||
return InitError(strErrors.str());
|
return InitError(strErrors.str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue