diff options
author | James O'Beirne <james.obeirne@gmail.com> | 2019-03-29 16:43:59 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@gmail.com> | 2019-09-17 09:45:38 -0400 |
commit | 3cf36736e540cf06250701f0934a7946836d000d (patch) | |
tree | 28a1cd25fa20c38938df353962ed39f1fee51701 /src/validation.h | |
parent | bcf73d3b84649c8786f0cccc6862dd1bbdb9950b (diff) |
refactoring: move ReplayBlocks under CChainState
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/validation.h b/src/validation.h index a6decf9a99..615b83f028 100644 --- a/src/validation.h +++ b/src/validation.h @@ -398,9 +398,6 @@ public: bool VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview, int nCheckLevel, int nCheckDepth); }; -/** Replay blocks that aren't fully applied to the database. */ -bool ReplayBlocks(const CChainParams& params, CCoinsView* view); - CBlockIndex* LookupBlockIndex(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main); /** Find the last common block between the parameter chain and a locator. */ @@ -701,7 +698,8 @@ public: bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, CBlockIndex* pindex) LOCKS_EXCLUDED(cs_main); void ResetBlockFailureFlags(CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main); - bool ReplayBlocks(const CChainParams& params, CCoinsView* view); + /** Replay blocks that aren't fully applied to the database. */ + bool ReplayBlocks(const CChainParams& params); bool RewindBlockIndex(const CChainParams& params) LOCKS_EXCLUDED(cs_main); bool LoadGenesisBlock(const CChainParams& chainparams); |