Add SCRIPT_VERIFY_SIGPUSHONLY (BIP62 rule 2)

This commit is contained in:
Pieter Wuille
2014-10-08 16:29:45 -07:00
parent 65e4e8427d
commit d752ba86c1
8 changed files with 61 additions and 4 deletions

View File

@@ -230,7 +230,7 @@ bool CScript::IsPushOnly() const
return false;
// Note that IsPushOnly() *does* consider OP_RESERVED to be a
// push-type opcode, however execution of OP_RESERVED fails, so
// it's not relevant to P2SH as the scriptSig would fail prior to
// it's not relevant to P2SH/BIP62 as the scriptSig would fail prior to
// the P2SH special validation code being executed.
if (opcode > OP_16)
return false;