Skip to content

Commit

Permalink
sleep-wait on genesis block during init with -reindex
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Dec 21, 2014
1 parent f914f1a commit ff09e31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ff09e31

Please sign in to comment.