mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
sleep-wait on genesis block during init with -reindex
This commit is contained in:
parent
f914f1a746
commit
ff09e31a51
@ -1207,6 +1207,11 @@ bool AppInit2(boost::thread_group& threadGroup)
|
||||
vImportFiles.push_back(strFile);
|
||||
}
|
||||
threadGroup.create_thread(boost::bind(&ThreadImport, vImportFiles));
|
||||
if (chainActive.Tip() == NULL) {
|
||||
LogPrintf("Waiting for genesis block to be imported...\n");
|
||||
while (!fRequestShutdown && chainActive.Tip() == NULL)
|
||||
MilliSleep(10);
|
||||
}
|
||||
|
||||
// ********************************************************* Step 10: start node
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user