Browse Source

sleep-wait on genesis block during init with -reindex

0.13
Matt Corallo 10 years ago
parent
commit
ff09e31a51
  1. 5
      src/init.cpp

5
src/init.cpp

@ -1207,6 +1207,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…
Cancel
Save