Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 630 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Mark a block as finalized. | * Mark a block as finalized. | ||||
* A finalized block can not be reorged in any way. | * A finalized block can not be reorged in any way. | ||||
*/ | */ | ||||
bool FinalizeBlockAndInvalidate(const Config &config, CValidationState &state, | bool FinalizeBlockAndInvalidate(const Config &config, CValidationState &state, | ||||
CBlockIndex *pindex); | CBlockIndex *pindex); | ||||
const CBlockIndex *GetFinalizedBlock(); | |||||
/** Mark a block as invalid. */ | /** Mark a block as invalid. */ | ||||
bool InvalidateBlock(const Config &config, CValidationState &state, | bool InvalidateBlock(const Config &config, CValidationState &state, | ||||
CBlockIndex *pindex); | CBlockIndex *pindex); | ||||
/** Park a block. */ | /** Park a block. */ | ||||
bool ParkBlock(const Config &config, CValidationState &state, | bool ParkBlock(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); | ||||
/** Remove parked status from a block and its descendants. */ | /** Remove parked status from a block and its descendants. */ | ||||
bool UnparkBlockAndChildren(CBlockIndex *pindex); | bool UnparkBlockAndChildren(CBlockIndex *pindex); | ||||
/** Remove parked status from a block. */ | /** Remove parked status from a block. */ | ||||
bool UnparkBlock(CBlockIndex *pindex); | bool UnparkBlock(CBlockIndex *pindex); | ||||
/** | |||||
* Retrieve the topmost finalized block. | |||||
*/ | |||||
const CBlockIndex *GetFinalizedBlock(); | |||||
/** | |||||
* Checks if a block is finalized. | |||||
*/ | |||||
bool IsBlockFinalized(const 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 std::unique_ptr<CCoinsViewDB> pcoinsdbview; | extern std::unique_ptr<CCoinsViewDB> pcoinsdbview; | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |