aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-11-28 11:18:57 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-11-28 11:19:15 +0100
commitd7c8a830c4ca39ae29fcd0abadce4141a28cb04b (patch)
tree62d2541207c740b8f56c36283f81314955c922b8 /src/main.h
parent631e698bb72450625e9f619895e4960ccbf39cf0 (diff)
parentf86a24b368cf4e133add769966c7652ec3b63a75 (diff)
Merge pull request #5316
f86a24b Move `setmocktime` to hidden category (Wladimir J. van der Laan) bd9aebf Introduce a hidden category (Pieter Wuille) 0dd06b2 Delay writing block indexes in invalidate/reconsider (Pieter Wuille) 9b0a8d3 Add 'invalidateblock' and 'reconsiderblock' RPC commands. (Pieter Wuille)
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 7a15c2608c..caf8331ee1 100644
--- a/src/main.h
+++ b/src/main.h
@@ -607,6 +607,12 @@ public:
/** Find the last common block between the parameter chain and a locator. */
CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& locator);
+/** Mark a block as invalid. */
+bool InvalidateBlock(CValidationState& state, CBlockIndex *pindex);
+
+/** Remove invalidity status from a block and its descendants. */
+bool ReconsiderBlock(CValidationState& state, CBlockIndex *pindex);
+
/** The currently-connected chain of blocks. */
extern CChain chainActive;