From e0163852c72f86473171f4984a1b09262023b97a Mon Sep 17 00:00:00 2001 From: Fernando Paredes Garcia Date: Sun, 30 Jan 2022 13:05:58 -0500 Subject: [PATCH] #73 Devcoin blockchain has no BIP16 exception. --- src/validation.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index 4a8da11..b03e85a 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1688,14 +1688,12 @@ static unsigned int GetBlockScriptFlags(const CBlockIndex* pindex, const Consens { unsigned int flags = SCRIPT_VERIFY_NONE; - // BIP16 didn't become active until Apr 1 2012 (on mainnet, and - // retroactively applied to testnet) - // However, only one historical block violated the P2SH rules (on both - // mainnet and testnet), so for simplicity, always leave P2SH - // on except for the one violating block. + // BIP16 didn't become active on Bitcoin until Apr 1 2012 (on mainnet, and + // retroactively applied to their testnet) + // However, no Devcoin historical block violated the P2SH rules (on both + // mainnet and testnet), so for simplicity, always leave P2SH on if (consensusparams.BIP16Exception.IsNull() || // no bip16 exception on this chain - pindex->phashBlock == nullptr || // this is a new candidate block, eg from TestBlockValidity() - *pindex->phashBlock != consensusparams.BIP16Exception) // this block isn't the historical exception + pindex->phashBlock == nullptr) // this is a new candidate block, eg from TestBlockValidity() { flags |= SCRIPT_VERIFY_P2SH; }