diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-08-26 23:05:09 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-08-26 23:05:45 +0200 |
commit | 5127c4f21ca3f092b3a853833631dfc7f9c9456b (patch) | |
tree | a325ed7934f5d5ac0e3ac7ff3b393f2fce33abcc /src/main.h | |
parent | c072b8fd95cd4fa84f08189a0cd8b173ea2dbb8e (diff) |
Add preciousblock RPC
Includes a bugfix by Luke-Jr.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |