Enable P2SH in ConnectBlock regardless of timestamp

This commit is contained in:
instagibbs 2016-07-21 16:34:25 -04:00 committed by Gregory Sanders
parent 66ab07bd1b
commit 420bdf211d

View file

@ -2311,11 +2311,8 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
}
}
// BIP16 didn't become active until Apr 1 2012
int64_t nBIP16SwitchTime = 1333238400;
bool fStrictPayToScriptHash = (pindex->GetBlockTime() >= nBIP16SwitchTime);
unsigned int flags = fStrictPayToScriptHash ? SCRIPT_VERIFY_P2SH : SCRIPT_VERIFY_NONE;
//P2SH is a requirement for segwit + CT
unsigned int flags = SCRIPT_VERIFY_P2SH;
// Start enforcing the DERSIG (BIP66) rule
if (pindex->nHeight >= chainparams.GetConsensus().BIP66Height) {