mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-24 13:54:16 +00:00
Merge pull request #5243
ff09e31 sleep-wait on genesis block during init with -reindex (Matt Corallo)
This commit is contained in:
commit
2fae1875ea
@ -1254,6 +1254,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…
x
Reference in New Issue
Block a user