diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2018-05-08 20:24:06 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2018-05-29 14:40:18 -0700 |
commit | c814e2e7e81fd01fcb07f4a28435741bdc463801 (patch) | |
tree | cbbbdd22d0124e8988d8e6e0c4de6ab1dcb98925 /src/script/script.h | |
parent | 6b824c090f53d0a56833930fd38c41bcaec8ff4a (diff) |
Remove template matching and pseudo opcodes
The current code contains a rather complex script template matching engine,
which is only used for 3 particular script types (P2PK, P2PKH, multisig).
The first two of these are trivial to match for otherwise, and a specialized
matcher for multisig is both more compact and more efficient than a generic
one.
The goal is being more flexible, so that for example larger standard multisigs
inside SegWit outputs are more easy to implement.
As a side-effect, it also gets rid of the pseudo opcodes hack.
Diffstat (limited to 'src/script/script.h')
-rw-r--r-- | src/script/script.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/script/script.h b/src/script/script.h index d8b7c06013..a4f377dd94 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -181,13 +181,6 @@ enum opcodetype OP_NOP9 = 0xb8, OP_NOP10 = 0xb9, - - // template matching params - OP_SMALLINTEGER = 0xfa, - OP_PUBKEYS = 0xfb, - OP_PUBKEYHASH = 0xfd, - OP_PUBKEY = 0xfe, - OP_INVALIDOPCODE = 0xff, }; |