Merge #8636: Implement NULLDUMMY softfork (BIP147)

482f852 Implement NULLDUMMY softfork (Johnson Lau)
This commit is contained in:
Wladimir J. van der Laan
2016-09-22 10:20:44 +02:00
3 changed files with 150 additions and 0 deletions

View File

@@ -2388,6 +2388,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
// Start enforcing WITNESS rules using versionbits logic.
if (IsWitnessEnabled(pindex->pprev, chainparams.GetConsensus())) {
flags |= SCRIPT_VERIFY_WITNESS;
flags |= SCRIPT_VERIFY_NULLDUMMY;
}
int64_t nTime2 = GetTimeMicros(); nTimeForks += nTime2 - nTime1;