Browse Source

Merge pull request #5243

ff09e31 sleep-wait on genesis block during init with -reindex (Matt Corallo)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
2fae1875ea
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 5
      src/init.cpp

5
src/init.cpp

@ -1254,6 +1254,11 @@ bool AppInit2(boost::thread_group& threadGroup) @@ -1254,6 +1254,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…
Cancel
Save