add parsing for segwit outpoint
This commit is contained in:
parent
7051c332a1
commit
df60fa7ab2
1 changed files with 4 additions and 0 deletions
|
@ -400,6 +400,9 @@ class BaseOutputScript(Script):
|
|||
PAY_SCRIPT_HASH = Template('pay_script_hash', (
|
||||
OP_HASH160, PUSH_SINGLE('script_hash'), OP_EQUAL
|
||||
))
|
||||
PAY_SEGWIT = Template('pay_script_hash+segwit', (
|
||||
OP_0, PUSH_SINGLE('script_hash')
|
||||
))
|
||||
RETURN_DATA = Template('return_data', (
|
||||
OP_RETURN, PUSH_SINGLE('data')
|
||||
))
|
||||
|
@ -408,6 +411,7 @@ class BaseOutputScript(Script):
|
|||
PAY_PUBKEY_FULL,
|
||||
PAY_PUBKEY_HASH,
|
||||
PAY_SCRIPT_HASH,
|
||||
PAY_SEGWIT,
|
||||
RETURN_DATA
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue