Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 580 Lines • ▼ Show 20 Lines | |||||
* check for a transaction based on the chain tip. | * check for a transaction based on the chain tip. | ||||
* | * | ||||
* See consensus/consensus.h for flag definitions. | * See consensus/consensus.h for flag definitions. | ||||
*/ | */ | ||||
bool ContextualCheckTransactionForCurrentBlock( | bool ContextualCheckTransactionForCurrentBlock( | ||||
const Config &config, const CTransaction &tx, CValidationState &state, | const Config &config, const CTransaction &tx, CValidationState &state, | ||||
const Consensus::Params &consensusParams, int flags = -1); | const Consensus::Params &consensusParams, int flags = -1); | ||||
/** Context-dependent validity checks. | /** | ||||
* By "context", we mean only the previous block headers, but not the UTXO | * Context-dependent validity checks. | ||||
* set; UTXO-related validity checks are done in ConnectBlock(). */ | * | ||||
bool ContextualCheckBlockHeader(const CBlockHeader &block, | * By "context", we mean only the previous block headers, but not the UTXO set; | ||||
CValidationState &state, | * UTXO-related validity checks are done in ConnectBlock(). | ||||
const Consensus::Params &consensusParams, | */ | ||||
const CBlockIndex *pindexPrev, | |||||
int64_t nAdjustedTime); | |||||
bool ContextualCheckBlock(const Config &config, const CBlock &block, | bool ContextualCheckBlock(const Config &config, const CBlock &block, | ||||
CValidationState &state, | CValidationState &state, | ||||
const Consensus::Params &consensusParams, | const Consensus::Params &consensusParams, | ||||
const CBlockIndex *pindexPrev); | const CBlockIndex *pindexPrev); | ||||
/** 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(const Config &config, CValidationState &state, | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |