Separate NULLDUMMY enforcement from SEGWIT enforcement

This is in preparation for enforcing SCRIPT_VERIFY_WITNESS from
the genesis block.
This commit is contained in:
Suhas Daftuar
2017-09-12 12:40:29 -04:00
committed by Suhas Daftuar
parent ce650182f4
commit 95749a5836
2 changed files with 12 additions and 0 deletions

View File

@ -411,6 +411,9 @@ bool TestBlockValidity(CValidationState& state, const CChainParams& chainparams,
/** Check whether witness commitments are required for block. */
bool IsWitnessEnabled(const CBlockIndex* pindexPrev, const Consensus::Params& params);
/** Check whether NULLDUMMY (BIP 147) has activated. */
bool IsNullDummyEnabled(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);