Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 758 Lines • ▼ Show 20 Lines | |||||
* Checks if a block is finalized. | * Checks if a block is finalized. | ||||
*/ | */ | ||||
bool IsBlockFinalized(const CBlockIndex *pindex) | bool IsBlockFinalized(const CBlockIndex *pindex) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** The currently-connected chain of blocks (protected by cs_main). */ | /** The currently-connected chain of blocks (protected by cs_main). */ | ||||
extern CChain &chainActive; | extern CChain &chainActive; | ||||
/** @returns the most-work chain. */ | |||||
CChain &ChainActive(); | |||||
/** | /** | ||||
* Global variable that points to the coins database (protected by cs_main) | * Global variable that points to the coins database (protected by cs_main) | ||||
*/ | */ | ||||
extern std::unique_ptr<CCoinsViewDB> pcoinsdbview; | extern std::unique_ptr<CCoinsViewDB> pcoinsdbview; | ||||
/** | /** | ||||
* Global variable that points to the active CCoinsView (protected by cs_main) | * Global variable that points to the active CCoinsView (protected by cs_main) | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |