Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 632 Lines • ▼ Show 20 Lines | |||||
bool ResetBlockFailureFlags(CBlockIndex *pindex); | bool ResetBlockFailureFlags(CBlockIndex *pindex); | ||||
/** 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; | ||||
/** | /** | ||||
* 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 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) | ||||
*/ | */ | ||||
extern CCoinsViewCache *pcoinsTip; | extern std::unique_ptr<CCoinsViewCache> pcoinsTip; | ||||
/** | /** | ||||
* Global variable that points to the active block tree (protected by cs_main) | * Global variable that points to the active block tree (protected by cs_main) | ||||
*/ | */ | ||||
extern CBlockTreeDB *pblocktree; | extern std::unique_ptr<CBlockTreeDB> pblocktree; | ||||
/** | /** | ||||
* Return the spend height, which is one more than the inputs.GetBestBlock(). | * Return the spend height, which is one more than the inputs.GetBestBlock(). | ||||
* While checking, GetBestBlock() refers to the parent block. (protected by | * While checking, GetBestBlock() refers to the parent block. (protected by | ||||
* cs_main) | * cs_main) | ||||
* This is also true for mempool checks. | * This is also true for mempool checks. | ||||
*/ | */ | ||||
int GetSpendHeight(const CCoinsViewCache &inputs); | int GetSpendHeight(const CCoinsViewCache &inputs); | ||||
Show All 32 Lines |