Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,271 Lines • ▼ Show 20 Lines | // Wait for genesis block to be processed | ||||
// ThreadImport getting started, so instead we just wait on a timer to | // ThreadImport getting started, so instead we just wait on a timer to | ||||
// check ShutdownRequested() regularly. | // check ShutdownRequested() regularly. | ||||
while (!fHaveGenesis && !ShutdownRequested()) { | while (!fHaveGenesis && !ShutdownRequested()) { | ||||
condvar_GenesisWait.wait_for(lock, std::chrono::milliseconds(500)); | condvar_GenesisWait.wait_for(lock, std::chrono::milliseconds(500)); | ||||
} | } | ||||
uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait); | uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait); | ||||
} | } | ||||
if (ShutdownRequested()) { | |||||
return false; | |||||
} | |||||
// Step 11: start node | // Step 11: start node | ||||
int chain_active_height; | int chain_active_height; | ||||
//// debug print | //// debug print | ||||
{ | { | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
LogPrintf("mapBlockIndex.size() = %u\n", mapBlockIndex.size()); | LogPrintf("mapBlockIndex.size() = %u\n", mapBlockIndex.size()); | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |