From 5b690f0aae21e7d46cbefe3f5be645842ac4ae3b Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Thu, 12 Dec 2019 10:28:14 -0500 Subject: refactor: move RewindBlockIndex to CChainState This is in preparation for multiple chainstate initialization in init. --- src/validation.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/validation.h') diff --git a/src/validation.h b/src/validation.h index 35e4380bc0..3b160ac799 100644 --- a/src/validation.h +++ b/src/validation.h @@ -380,9 +380,6 @@ bool TestBlockValidity(BlockValidationState& state, const CChainParams& chainpar * Note that transaction witness validation rules are always enforced when P2SH is enforced. */ bool IsWitnessEnabled(const CBlockIndex* pindexPrev, const Consensus::Params& params); -/** When there are blocks in the active chain with missing data, rewind the chainstate and remove them from the block index */ -bool RewindBlockIndex(const CChainParams& params) LOCKS_EXCLUDED(cs_main); - /** Compute at which vout of the block's coinbase transaction the witness commitment occurs, or -1 if not found */ int GetWitnessCommitmentIndex(const CBlock& block); -- cgit v1.2.3