Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | for (const uint256 &hash : locator.vHave) { | ||||
if (pindex->GetAncestor(chain.Height()) == chain.Tip()) { | if (pindex->GetAncestor(chain.Height()) == chain.Tip()) { | ||||
return chain.Tip(); | return chain.Tip(); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return chain.Genesis(); | return chain.Genesis(); | ||||
} | } | ||||
CCoinsViewDB *pcoinsdbview = nullptr; | |||||
CCoinsViewCache *pcoinsTip = nullptr; | CCoinsViewCache *pcoinsTip = nullptr; | ||||
CBlockTreeDB *pblocktree = nullptr; | CBlockTreeDB *pblocktree = nullptr; | ||||
enum FlushStateMode { | enum FlushStateMode { | ||||
FLUSH_STATE_NONE, | FLUSH_STATE_NONE, | ||||
FLUSH_STATE_IF_NEEDED, | FLUSH_STATE_IF_NEEDED, | ||||
FLUSH_STATE_PERIODIC, | FLUSH_STATE_PERIODIC, | ||||
FLUSH_STATE_ALWAYS | FLUSH_STATE_ALWAYS | ||||
▲ Show 20 Lines • Show All 4,971 Lines • Show Last 20 Lines |