Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 835 Lines • ▼ Show 20 Lines | public: | ||||
/** Park a block. */ | /** Park a block. */ | ||||
bool ParkBlock(const Config &config, BlockValidationState &state, | bool ParkBlock(const Config &config, BlockValidationState &state, | ||||
CBlockIndex *pindex); | CBlockIndex *pindex); | ||||
/** | /** | ||||
* Finalize a block. | * Finalize a block. | ||||
* A finalized block can not be reorged in any way. | * A finalized block can not be reorged in any way. | ||||
*/ | */ | ||||
bool FinalizeBlock(const Config &config, BlockValidationState &state, | bool FinalizeBlock(const Config &config, BlockValidationState &state, | ||||
CBlockIndex *pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main); | CBlockIndex *pindex) LOCKS_EXCLUDED(cs_main); | ||||
void ResetBlockFailureFlags(CBlockIndex *pindex) | void ResetBlockFailureFlags(CBlockIndex *pindex) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
template <typename F> | template <typename F> | ||||
bool UpdateFlagsForBlock(CBlockIndex *pindexBase, CBlockIndex *pindex, F f) | bool UpdateFlagsForBlock(CBlockIndex *pindexBase, CBlockIndex *pindex, F f) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
template <typename F, typename C, typename AC> | template <typename F, typename C, typename AC> | ||||
void UpdateFlags(CBlockIndex *pindex, CBlockIndex *&pindexReset, F f, | void UpdateFlags(CBlockIndex *pindex, CBlockIndex *&pindexReset, F f, | ||||
C fChild, AC fAncestorWasChanged) | C fChild, AC fAncestorWasChanged) | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |