Changeset View
Changeset View
Standalone View
Standalone View
src/index/base.cpp
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | void BaseIndex::BlockConnected( | ||||
} | } | ||||
} | } | ||||
void BaseIndex::ChainStateFlushed(const CBlockLocator &locator) { | void BaseIndex::ChainStateFlushed(const CBlockLocator &locator) { | ||||
if (!m_synced) { | if (!m_synced) { | ||||
return; | return; | ||||
} | } | ||||
const uint256 &locator_tip_hash = locator.vHave.front(); | const BlockHash &locator_tip_hash = locator.vHave.front(); | ||||
const CBlockIndex *locator_tip_index; | const CBlockIndex *locator_tip_index; | ||||
{ | { | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
locator_tip_index = LookupBlockIndex(locator_tip_hash); | locator_tip_index = LookupBlockIndex(locator_tip_hash); | ||||
} | } | ||||
if (!locator_tip_index) { | if (!locator_tip_index) { | ||||
FatalError("%s: First block (hash=%s) in locator was not found", | FatalError("%s: First block (hash=%s) in locator was not found", | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |