mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
sleep-wait on genesis block during init with -reindex
Rebased-From: ff09e31a51
Github-Pull: #5243
This commit is contained in:
parent
b24ff47c64
commit
c5044bc169
@ -1248,6 +1248,11 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||||||
vImportFiles.push_back(strFile);
|
vImportFiles.push_back(strFile);
|
||||||
}
|
}
|
||||||
threadGroup.create_thread(boost::bind(&ThreadImport, vImportFiles));
|
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
|
// ********************************************************* Step 10: start node
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user