Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 551 Lines • ▼ Show 20 Lines | |||||
bool ReadBlockFromDisk(CBlock &block, const CDiskBlockPos &pos, | bool ReadBlockFromDisk(CBlock &block, const CDiskBlockPos &pos, | ||||
const Config &config); | const Config &config); | ||||
bool ReadBlockFromDisk(CBlock &block, const CBlockIndex *pindex, | bool ReadBlockFromDisk(CBlock &block, const CBlockIndex *pindex, | ||||
const Config &config); | const Config &config); | ||||
/** Functions for validating blocks and updating the block tree */ | /** Functions for validating blocks and updating the block tree */ | ||||
/** Context-independent validity checks */ | /** Context-independent validity checks */ | ||||
bool CheckBlockHeader(const CBlockHeader &block, CValidationState &state, | |||||
const Consensus::Params &consensusParams, | |||||
bool fCheckPOW = true); | |||||
bool CheckBlock(const Config &Config, const CBlock &block, | bool CheckBlock(const Config &Config, const CBlock &block, | ||||
CValidationState &state, | CValidationState &state, bool fCheckPOW = true, | ||||
const Consensus::Params &consensusParams, bool fCheckPOW = true, | |||||
bool fCheckMerkleRoot = true); | bool fCheckMerkleRoot = true); | ||||
/** | /** | ||||
* Context dependent validity checks for non coinbase transactions. This | * Context dependent validity checks for non coinbase transactions. This | ||||
* doesn't check the validity of the transaction against the UTXO set, but | * doesn't check the validity of the transaction against the UTXO set, but | ||||
* simply characteristic that are suceptible to change over time such as feature | * simply characteristic that are suceptible to change over time such as feature | ||||
* activation/deactivation and CLTV. | * activation/deactivation and CLTV. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |