diff options
author | Carl Dong <contact@carldong.me> | 2020-09-15 15:10:57 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-02-22 11:48:39 -0500 |
commit | a3ba08ba7dec0b016e42233cd4a061ba1a0e86c1 (patch) | |
tree | ebd813a58a65debbd08bef30f9c2b528853e9338 /src/validation.h | |
parent | 4927c9e6991b09a36a41aab93a0e05332d899611 (diff) |
validation: Remove global ::{{Precious,Invalidate}Block,ResetBlockFailureFlags}
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/validation.h b/src/validation.h index 4e4bdbea54..73b17c6353 100644 --- a/src/validation.h +++ b/src/validation.h @@ -721,8 +721,14 @@ public: bool DisconnectTip(BlockValidationState& state, const CChainParams& chainparams, DisconnectedBlockTransactions* disconnectpool) EXCLUSIVE_LOCKS_REQUIRED(cs_main, m_mempool.cs); // Manual block validity manipulation: + /** Mark a block as precious and reorganize. + * + * May not be called in a validationinterface callback. + */ bool PreciousBlock(BlockValidationState& state, const CChainParams& params, CBlockIndex* pindex) LOCKS_EXCLUDED(cs_main); + /** Mark a block as invalid. */ bool InvalidateBlock(BlockValidationState& state, const CChainParams& chainparams, CBlockIndex* pindex) LOCKS_EXCLUDED(cs_main); + /** Remove invalidity status from a block and its descendants. */ void ResetBlockFailureFlags(CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main); /** Replay blocks that aren't fully applied to the database. */ @@ -779,19 +785,6 @@ private: friend ChainstateManager; }; -/** Mark a block as precious and reorganize. - * - * May not be called in a - * validationinterface callback. - */ -bool PreciousBlock(BlockValidationState& state, const CChainParams& params, CBlockIndex *pindex) LOCKS_EXCLUDED(cs_main); - -/** Mark a block as invalid. */ -bool InvalidateBlock(BlockValidationState& state, const CChainParams& chainparams, CBlockIndex* pindex) LOCKS_EXCLUDED(cs_main); - -/** Remove invalidity status from a block and its descendants. */ -void ResetBlockFailureFlags(CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main); - /** * Provides an interface for creating and interacting with one or two * chainstates: an IBD chainstate generated by downloading blocks, and |