Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,476 Lines • ▼ Show 20 Lines | for (bool fLoaded = false; !fLoaded && !ShutdownRequested();) { | ||||
[&] { return VerifyLoadedChainstate(chainman, options); }); | [&] { return VerifyLoadedChainstate(chainman, options); }); | ||||
if (status == node::ChainstateLoadStatus::SUCCESS) { | if (status == node::ChainstateLoadStatus::SUCCESS) { | ||||
fLoaded = true; | fLoaded = true; | ||||
LogPrintf(" block index %15dms\n", | LogPrintf(" block index %15dms\n", | ||||
GetTimeMillis() - load_block_index_start_time); | GetTimeMillis() - load_block_index_start_time); | ||||
} | } | ||||
} | } | ||||
if (status == node::ChainstateLoadStatus::FAILURE_INCOMPATIBLE_DB || | if (status == node::ChainstateLoadStatus::FAILURE_FATAL || | ||||
status == node::ChainstateLoadStatus::FAILURE_INCOMPATIBLE_DB || | |||||
status == | status == | ||||
node::ChainstateLoadStatus::FAILURE_INSUFFICIENT_DBCACHE) { | node::ChainstateLoadStatus::FAILURE_INSUFFICIENT_DBCACHE) { | ||||
return InitError(error); | return InitError(error); | ||||
} | } | ||||
if (!fLoaded && !ShutdownRequested()) { | if (!fLoaded && !ShutdownRequested()) { | ||||
// first suggest a reindex | // first suggest a reindex | ||||
if (!options.reindex) { | if (!options.reindex) { | ||||
▲ Show 20 Lines • Show All 430 Lines • Show Last 20 Lines |