diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-08-25 18:17:59 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-08-25 18:17:59 -0700 |
commit | b62dc051aa44ee73e24b49dd9337de2434b89710 (patch) | |
tree | f51a036053413d57e3a2e33e96b00d10cdff6a2f /src/script.h | |
parent | 8a9e538227b077b05c93bfec8e5ce1cca0bb366a (diff) | |
parent | 214d45b6b9a4f25d7d8bd4e5443fa2bee485353a (diff) | |
download | bitcoin-b62dc051aa44ee73e24b49dd9337de2434b89710.tar.xz |
Merge pull request #2938 from petertodd/op-reserved-weirdness
Document and test OP_RESERVED weirdness
Diffstat (limited to 'src/script.h')
-rw-r--r-- | src/script.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script.h b/src/script.h index fd5b12921e..0ab47678e8 100644 --- a/src/script.h +++ b/src/script.h @@ -543,6 +543,10 @@ public: opcodetype opcode; if (!GetOp(pc, opcode)) 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 + // the P2SH special validation code being executed. if (opcode > OP_16) return false; } |