Implement NULLDUMMY softfork

Github-Pull: #8636
Rebased-From: 482f852da65457eb2fbea6b259e7568133fb81c4
This commit is contained in:
Johnson Lau
2016-08-31 19:38:23 +08:00
committed by Wladimir J. van der Laan
parent cef633ce63
commit 9dfa0c8d90
3 changed files with 150 additions and 0 deletions

View File

@@ -2399,6 +2399,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;