OP_RETURN can be spent inside false conditions
See tx 928ed84cd4c48beb0d3494ccc17cc1e06b1473f9dc118db9bb56972395ede461
This commit is contained in:
parent
451f9d026a
commit
9ac4718218
@ -107,7 +107,7 @@ class ScriptPubKey(object):
|
||||
return handlers.script_hash(ops[1][-1])
|
||||
if match(ops, cls.TO_PUBKEY_OPS):
|
||||
return handlers.pubkey(ops[0][-1])
|
||||
if OpCodes.OP_RETURN in ops:
|
||||
if ops and ops[0] == OpCodes.OP_RETURN:
|
||||
return handlers.unspendable()
|
||||
return handlers.strange(script)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user