From 5127c4f21ca3f092b3a853833631dfc7f9c9456b Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 26 Aug 2016 23:05:09 +0200 Subject: Add preciousblock RPC Includes a bugfix by Luke-Jr. --- src/main.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index e9106fccf7..f809f89812 100644 --- a/src/main.h +++ b/src/main.h @@ -499,6 +499,9 @@ 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 precious and reorganize. */ +bool PreciousBlock(CValidationState& state, const CChainParams& params, CBlockIndex *pindex); + /** Mark a block as invalid. */ bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, CBlockIndex *pindex); -- cgit v1.2.3