Split up CheckBlock in a block and header version

This commit is contained in:
Pieter Wuille
2014-04-25 00:33:13 +02:00
parent 4765b8c116
commit f457347053
2 changed files with 18 additions and 9 deletions
+1
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