diff options
| author | Pieter Wuille <[email protected]> | 2016-08-26 23:05:09 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-08-26 23:05:45 +0200 |
| commit | 5127c4f21ca3f092b3a853833631dfc7f9c9456b (patch) | |
| tree | a325ed7934f5d5ac0e3ac7ff3b393f2fce33abcc /src/main.h | |
| parent | Merge #8545: [doc] Update git-subtree-check.sh README (diff) | |
| download | discoin-5127c4f21ca3f092b3a853833631dfc7f9c9456b.tar.xz discoin-5127c4f21ca3f092b3a853833631dfc7f9c9456b.zip | |
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 e9106fccf..f809f8981 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); |