Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 591 Lines • ▼ Show 20 Lines | |||||
* our current best block) | * our current best block) | ||||
*/ | */ | ||||
bool TestBlockValidity(CValidationState &state, const CChainParams ¶ms, | bool TestBlockValidity(CValidationState &state, const CChainParams ¶ms, | ||||
const CBlock &block, CBlockIndex *pindexPrev, | const CBlock &block, CBlockIndex *pindexPrev, | ||||
BlockValidationOptions validationOptions) | BlockValidationOptions validationOptions) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** | /** | ||||
* When there are blocks in the active chain with missing data, rewind the | |||||
* chainstate and remove them from the block index. | |||||
*/ | |||||
bool RewindBlockIndex(const Config &config); | |||||
/** | |||||
* RAII wrapper for VerifyDB: Verify consistency of the block and coin | * RAII wrapper for VerifyDB: Verify consistency of the block and coin | ||||
* databases. | * databases. | ||||
*/ | */ | ||||
class CVerifyDB { | class CVerifyDB { | ||||
public: | public: | ||||
CVerifyDB(); | CVerifyDB(); | ||||
~CVerifyDB(); | ~CVerifyDB(); | ||||
bool VerifyDB(const Config &config, CCoinsView *coinsview, int nCheckLevel, | bool VerifyDB(const Config &config, CCoinsView *coinsview, int nCheckLevel, | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |