Merge #7444: Improve block validity/ConnectBlock() comments

2f19905 Improve block validity/ConnectBlock() comments (Peter Todd)
This commit is contained in:
Wladimir J. van der Laan 2016-02-03 12:29:30 +01:00 committed by Alexander Block
parent bcbd2cda24
commit 0f8ce56883

View File

@ -447,7 +447,9 @@ void ReprocessBlocks(int nBlocks);
bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, bool fCheckPOW = true);
bool CheckBlock(const CBlock& block, CValidationState& state, bool fCheckPOW = true, bool fCheckMerkleRoot = true);
/** Context-dependent validity checks */
/** Context-dependent validity checks.
* By "context", we mean only the previous block headers, but not the UTXO
* set; UTXO-related validity checks are done in ConnectBlock(). */
bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& state, CBlockIndex *pindexPrev);
bool ContextualCheckBlock(const CBlock& block, CValidationState& state, CBlockIndex *pindexPrev);