Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 600 Lines • ▼ Show 20 Lines | bool ContextualCheckTransactionForCurrentBlock(const Consensus::Params ¶ms, | ||||
const CTransaction &tx, | const CTransaction &tx, | ||||
CValidationState &state, | CValidationState &state, | ||||
int flags = -1); | int flags = -1); | ||||
/** | /** | ||||
* Check a block is completely valid from start to finish (only works on top of | * Check a block is completely valid from start to finish (only works on top of | ||||
* our current best block, with cs_main held) | * our current best block, with cs_main held) | ||||
*/ | */ | ||||
bool TestBlockValidity(const Config &config, CValidationState &state, | bool TestBlockValidity(CValidationState &state, const CChainParams ¶ms, | ||||
const CBlock &block, CBlockIndex *pindexPrev, | const CBlock &block, CBlockIndex *pindexPrev, | ||||
BlockValidationOptions validationOptions); | BlockValidationOptions validationOptions); | ||||
/** | /** | ||||
* When there are blocks in the active chain with missing data, rewind the | * When there are blocks in the active chain with missing data, rewind the | ||||
* chainstate and remove them from the block index. | * chainstate and remove them from the block index. | ||||
*/ | */ | ||||
bool RewindBlockIndex(const Config &config); | bool RewindBlockIndex(const Config &config); | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |