Litecoin: Validation

pull/751/head
Adrian Gallagher 4 years ago
parent 60fb716792
commit 5d1dbc0413
No known key found for this signature in database
GPG Key ID: FE3348877809386C

@ -1888,6 +1888,12 @@ static unsigned int GetBlockScriptFlags(const CBlockIndex* pindex, const Consens
flags |= SCRIPT_VERIFY_P2SH;
}
// Enforce WITNESS rules whenever P2SH is in effect (and the segwit
// deployment is defined).
if (flags & SCRIPT_VERIFY_P2SH && IsScriptWitnessEnabled(consensusparams)) {
flags |= SCRIPT_VERIFY_WITNESS;
}
// Start enforcing the DERSIG (BIP66) rule
if (pindex->nHeight >= consensusparams.BIP66Height) {
flags |= SCRIPT_VERIFY_DERSIG;

Loading…
Cancel
Save