mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Add SCRIPT_VERIFY_SIGPUSHONLY (BIP62 rule 2)
This commit is contained in:
parent
65e4e8427d
commit
d752ba86c1
8 changed files with 61 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue