diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-11-19 09:39:42 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-11-26 16:36:25 +0100 |
commit | 9b0a8d3152b43b63c99878d0223a1681993ad608 (patch) | |
tree | 33eaad082c1eaf52a331a57e027d7ded4288cc1a /src/main.h | |
parent | 9ff0bc9beb90cf96fb0a9698de22e2bc60fed2f2 (diff) |
Add 'invalidateblock' and 'reconsiderblock' RPC commands.
These can be used for testing reorganizations or for manual intervention in case of
chain forks.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index c0d6412528..aee8d9234a 100644 --- a/src/main.h +++ b/src/main.h @@ -609,6 +609,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; |