|
|
@ -447,8 +447,8 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P
|
|
|
|
/** Context-dependent validity checks.
|
|
|
|
/** Context-dependent validity checks.
|
|
|
|
* By "context", we mean only the previous block headers, but not the UTXO
|
|
|
|
* By "context", we mean only the previous block headers, but not the UTXO
|
|
|
|
* set; UTXO-related validity checks are done in ConnectBlock(). */
|
|
|
|
* set; UTXO-related validity checks are done in ConnectBlock(). */
|
|
|
|
bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& state, const Consensus::Params& consensusParams, CBlockIndex* pindexPrev, int64_t nAdjustedTime);
|
|
|
|
bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& state, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev, int64_t nAdjustedTime);
|
|
|
|
bool ContextualCheckBlock(const CBlock& block, CValidationState& state, CBlockIndex *pindexPrev);
|
|
|
|
bool ContextualCheckBlock(const CBlock& block, CValidationState& state, const CBlockIndex* pindexPrev);
|
|
|
|
|
|
|
|
|
|
|
|
/** Apply the effects of this block (with given index) on the UTXO set represented by coins.
|
|
|
|
/** Apply the effects of this block (with given index) on the UTXO set represented by coins.
|
|
|
|
* Validity checks that depend on the UTXO set are also done; ConnectBlock()
|
|
|
|
* Validity checks that depend on the UTXO set are also done; ConnectBlock()
|
|
|
|