Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,090 Lines • ▼ Show 20 Lines | RenameThread("bitcoin-loadblk"); | ||||
} | } | ||||
// scan for better chains in the block chain database, that are not yet | // scan for better chains in the block chain database, that are not yet | ||||
// connected in the active best chain | // connected in the active best chain | ||||
CValidationState state; | CValidationState state; | ||||
if (!ActivateBestChain(config, state)) { | if (!ActivateBestChain(config, state)) { | ||||
LogPrintf("Failed to connect best block"); | LogPrintf("Failed to connect best block"); | ||||
StartShutdown(); | StartShutdown(); | ||||
return; | |||||
} | } | ||||
if (gArgs.GetBoolArg("-stopafterblockimport", | if (gArgs.GetBoolArg("-stopafterblockimport", | ||||
DEFAULT_STOPAFTERBLOCKIMPORT)) { | DEFAULT_STOPAFTERBLOCKIMPORT)) { | ||||
LogPrintf("Stopping after block import\n"); | LogPrintf("Stopping after block import\n"); | ||||
StartShutdown(); | StartShutdown(); | ||||
return; | |||||
} | } | ||||
} // End scope of CImportingNow | } // End scope of CImportingNow | ||||
if (gArgs.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) { | if (gArgs.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) { | ||||
LoadMempool(config); | LoadMempool(config); | ||||
} | } | ||||
g_is_mempool_loaded = !fRequestShutdown; | g_is_mempool_loaded = !fRequestShutdown; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,265 Lines • Show Last 20 Lines |