aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2014-10-19 23:09:50 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2014-11-18 19:20:10 +0000
commita48f2d6ddd8a438a126bfb7940d993f2da598476 (patch)
tree1d7f974e45d99b47ed15bc447fa4078274345db8 /src/main.h
parentff17816abf2d2be2b349c4ba4d49633a126074fa (diff)
Abstract context-dependent block checking from acceptance
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 1bb0919817..6e684be8c0 100644
--- a/src/main.h
+++ b/src/main.h
@@ -463,6 +463,10 @@ bool ConnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex, C
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
+bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& state, CBlockIndex *pindexPrev);
+bool ContextualCheckBlock(const CBlock& block, CValidationState& state, CBlockIndex *pindexPrev);
+
// Store block on disk
// if dbp is provided, the file is known to already reside on disk
bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex **pindex, CDiskBlockPos* dbp = NULL);