Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,486 Lines • ▼ Show 20 Lines | for (bool fLoaded = false; !fLoaded && !ShutdownRequested();) { | ||||
if (status == node::ChainstateLoadStatus::SUCCESS) { | if (status == node::ChainstateLoadStatus::SUCCESS) { | ||||
uiInterface.InitMessage(_("Verifying blocks...").translated); | uiInterface.InitMessage(_("Verifying blocks...").translated); | ||||
if (chainman.m_blockman.m_have_pruned && | if (chainman.m_blockman.m_have_pruned && | ||||
options.check_blocks > MIN_BLOCKS_TO_KEEP) { | options.check_blocks > MIN_BLOCKS_TO_KEEP) { | ||||
LogPrintf("Prune: pruned datadir may not have more than %d " | LogPrintf("Prune: pruned datadir may not have more than %d " | ||||
"blocks; only checking available blocks\n", | "blocks; only checking available blocks\n", | ||||
MIN_BLOCKS_TO_KEEP); | MIN_BLOCKS_TO_KEEP); | ||||
} | } | ||||
std::tie(status, error) = catch_exceptions([&] { | std::tie(status, error) = catch_exceptions( | ||||
return VerifyLoadedChainstate(chainman, options, config); | [&] { 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_INCOMPATIBLE_DB || | ||||
▲ Show 20 Lines • Show All 438 Lines • Show Last 20 Lines |