mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Merge pull request #5316
f86a24bMove `setmocktime` to hidden category (Wladimir J. van der Laan)bd9aebfIntroduce a hidden category (Pieter Wuille)0dd06b2Delay writing block indexes in invalidate/reconsider (Pieter Wuille)9b0a8d3Add 'invalidateblock' and 'reconsiderblock' RPC commands. (Pieter Wuille)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user