From 0f8ce56883e42ff4d490e8d7a78c5b2ba7e2da3d Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 3 Feb 2016 12:29:30 +0100 Subject: [PATCH] Merge #7444: Improve block validity/ConnectBlock() comments 2f19905 Improve block validity/ConnectBlock() comments (Peter Todd) --- src/validation.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/validation.h b/src/validation.h index e71877e06b..d2e927030b 100644 --- a/src/validation.h +++ b/src/validation.h @@ -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);