Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show All 30 Lines | |||||
#include <string> | #include <string> | ||||
#include <utility> | #include <utility> | ||||
#include <vector> | #include <vector> | ||||
class CBlockIndex; | class CBlockIndex; | ||||
class CBlockTreeDB; | class CBlockTreeDB; | ||||
class CBloomFilter; | class CBloomFilter; | ||||
class CChainParams; | class CChainParams; | ||||
class CCoinsViewDB; | |||||
class CConnman; | class CConnman; | ||||
class CInv; | class CInv; | ||||
class Config; | class Config; | ||||
class CScriptCheck; | class CScriptCheck; | ||||
class CTxMemPool; | class CTxMemPool; | ||||
class CTxUndo; | class CTxUndo; | ||||
class CValidationInterface; | class CValidationInterface; | ||||
class CValidationState; | class CValidationState; | ||||
▲ Show 20 Lines • Show All 579 Lines • ▼ Show 20 Lines | bool InvalidateBlock(const Config &config, CValidationState &state, | ||||
CBlockIndex *pindex); | CBlockIndex *pindex); | ||||
/** Remove invalidity status from a block and its descendants. */ | /** Remove invalidity status from a block and its descendants. */ | ||||
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 active CCoinsView (protected by cs_main) | /** | ||||
* Global variable that points to the coins database (protected by cs_main) | |||||
*/ | |||||
extern CCoinsViewDB *pcoinsdbview; | |||||
/** | |||||
* Global variable that points to the active CCoinsView (protected by cs_main) | |||||
*/ | */ | ||||
extern CCoinsViewCache *pcoinsTip; | extern 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 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. | ||||
Show All 34 Lines |