Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 666 Lines • ▼ Show 20 Lines | |||||
const CBlockIndex *GetFinalizedBlock() EXCLUSIVE_LOCKS_REQUIRED(cs_main); | const CBlockIndex *GetFinalizedBlock() EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** | /** | ||||
* 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). */ | |||||
extern CChain &chainActive; | |||||
/** @returns the most-work chain. */ | /** @returns the most-work chain. */ | ||||
CChain& ChainActive(); | 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; | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |