diff options
| author | Suhas Daftuar <[email protected]> | 2017-09-12 12:40:29 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2018-04-13 10:35:27 -0400 |
| commit | 95749a58364611c997ba9295fb27489e0d7b1d42 (patch) | |
| tree | e9c254385c6abd27c1ff919d385f614a236d4beb /src/validation.h | |
| parent | Use P2SH consensus rules for all blocks (diff) | |
| download | discoin-95749a58364611c997ba9295fb27489e0d7b1d42.tar.xz discoin-95749a58364611c997ba9295fb27489e0d7b1d42.zip | |
Separate NULLDUMMY enforcement from SEGWIT enforcement
This is in preparation for enforcing SCRIPT_VERIFY_WITNESS from
the genesis block.
Diffstat (limited to 'src/validation.h')
| -rw-r--r-- | src/validation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index 366848469..b415a8505 100644 --- a/src/validation.h +++ b/src/validation.h @@ -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); |