Implement NULLDUMMY softfork

This commit is contained in:
Johnson Lau
2016-08-31 19:38:23 +08:00
parent 53f8f226bd
commit 482f852da6
3 changed files with 150 additions and 0 deletions

View File

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