Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 512 Lines • ▼ Show 20 Lines | bool CheckBlock(const CBlock &block, BlockValidationState &state, | ||||
BlockValidationOptions validationOptions); | BlockValidationOptions validationOptions); | ||||
/** | /** | ||||
* This is a variant of ContextualCheckTransaction which computes the contextual | * This is a variant of ContextualCheckTransaction which computes the contextual | ||||
* 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(const Consensus::Params ¶ms, | bool ContextualCheckTransactionForCurrentBlock( | ||||
const CTransaction &tx, | const CBlockIndex *active_chain_tip, const Consensus::Params ¶ms, | ||||
TxValidationState &state, | const CTransaction &tx, TxValidationState &state, int flags = -1) | ||||
int flags = -1) | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** | /** | ||||
* 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) | * our current best block) | ||||
*/ | */ | ||||
bool TestBlockValidity(BlockValidationState &state, const CChainParams ¶ms, | bool TestBlockValidity(BlockValidationState &state, const CChainParams ¶ms, | ||||
CChainState &chainstate, const CBlock &block, | CChainState &chainstate, const CBlock &block, | ||||
▲ Show 20 Lines • Show All 787 Lines • Show Last 20 Lines |