diff options
| author | Pieter Wuille <[email protected]> | 2016-07-22 16:01:51 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-07-30 02:17:51 +0200 |
| commit | 9d4eb9ad99f7c3abf7abaeaf7ea51f98f9445e75 (patch) | |
| tree | 054aa867b5a25baee6a765dccc0fbaf61a7589bf /src/init.cpp | |
| parent | Add extra message to avoid a long 'Loading banlist' (diff) | |
| download | discoin-9d4eb9ad99f7c3abf7abaeaf7ea51f98f9445e75.tar.xz discoin-9d4eb9ad99f7c3abf7abaeaf7ea51f98f9445e75.zip | |
Do diskspace check before import thread is started
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index 4458c8331..44d8c16d9 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1418,6 +1418,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) // ********************************************************* Step 10: import blocks + if (!CheckDiskSpace()) + return false; + // 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. if (chainActive.Tip() == NULL) { @@ -1449,9 +1452,6 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) // ********************************************************* Step 11: start node - if (!CheckDiskSpace()) - return false; - if (!strErrors.str().empty()) return InitError(strErrors.str()); |