Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | private: | ||||
* Because we already walk mapBlockIndex in height-order at startup, we go | * Because we already walk mapBlockIndex in height-order at startup, we go | ||||
* ahead and mark descendants of invalid blocks as FAILED_CHILD at that | * ahead and mark descendants of invalid blocks as FAILED_CHILD at that | ||||
* time, instead of putting things in this set. | * time, instead of putting things in this set. | ||||
*/ | */ | ||||
std::set<CBlockIndex *> m_failed_blocks; | std::set<CBlockIndex *> m_failed_blocks; | ||||
public: | public: | ||||
CChain chainActive; | CChain chainActive; | ||||
BlockMap mapBlockIndex; | BlockMap mapBlockIndex GUARDED_BY(cs_main); | ||||
std::multimap<CBlockIndex *, CBlockIndex *> mapBlocksUnlinked; | std::multimap<CBlockIndex *, CBlockIndex *> mapBlocksUnlinked; | ||||
CBlockIndex *pindexBestInvalid = nullptr; | CBlockIndex *pindexBestInvalid = nullptr; | ||||
CBlockIndex *pindexBestParked = nullptr; | CBlockIndex *pindexBestParked = nullptr; | ||||
CBlockIndex const *pindexFinalized = nullptr; | CBlockIndex const *pindexFinalized = nullptr; | ||||
bool LoadBlockIndex(const Config &config, CBlockTreeDB &blocktree) | bool LoadBlockIndex(const Config &config, CBlockTreeDB &blocktree) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
▲ Show 20 Lines • Show All 5,658 Lines • Show Last 20 Lines |