|
|
@ -3819,8 +3819,6 @@ bool CChainState::LoadBlockIndex(const Consensus::Params& consensus_params, CBlo
|
|
|
|
if (!blocktree.LoadBlockIndexGuts(consensus_params, [this](const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main) { return this->InsertBlockIndex(hash); }))
|
|
|
|
if (!blocktree.LoadBlockIndexGuts(consensus_params, [this](const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main) { return this->InsertBlockIndex(hash); }))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
boost::this_thread::interruption_point();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Calculate nChainWork
|
|
|
|
// Calculate nChainWork
|
|
|
|
std::vector<std::pair<int, CBlockIndex*> > vSortedByHeight;
|
|
|
|
std::vector<std::pair<int, CBlockIndex*> > vSortedByHeight;
|
|
|
|
vSortedByHeight.reserve(mapBlockIndex.size());
|
|
|
|
vSortedByHeight.reserve(mapBlockIndex.size());
|
|
|
|