Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,182 Lines • ▼ Show 20 Lines | ScheduleBatchPriority(); | ||||
path.string()); | path.string()); | ||||
} | } | ||||
} | } | ||||
// 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 (%s)\n", | ||||
FormatStateMessage(state)); | |||||
StartShutdown(); | StartShutdown(); | ||||
return; | 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(); | ||||
▲ Show 20 Lines • Show All 1,295 Lines • Show Last 20 Lines |