Split up CheckBlock in a block and header version

This commit is contained in:
Pieter Wuille
2014-03-11 17:36:21 +01:00
parent 4765b8c116
commit f457347053
2 changed files with 18 additions and 9 deletions

View File

@@ -603,6 +603,7 @@ bool ConnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex, C
bool AddToBlockIndex(CBlock& block, CValidationState& state, const CDiskBlockPos& pos);
// Context-independent validity checks
bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, bool fCheckPOW = true);
bool CheckBlock(const CBlock& block, CValidationState& state, bool fCheckPOW = true, bool fCheckMerkleRoot = true);
// Store block on disk