diff options
author | James O'Beirne <james.obeirne@gmail.com> | 2019-12-12 10:28:14 -0500 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2020-03-17 14:03:40 -0400 |
commit | 5b690f0aae21e7d46cbefe3f5be645842ac4ae3b (patch) | |
tree | f400ff724c4d23acaff44dd9820854e00cbdafdb /src/validation.h | |
parent | 89cdf4d5692d396b8c7177b3918aa9dab07f9624 (diff) |
refactor: move RewindBlockIndex to CChainState
This is in preparation for multiple chainstate initialization in init.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 3 |
1 files changed, 0 insertions, 3 deletions
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); |