Browse Source

OP_RETURN can be spent inside false conditions

See tx 928ed84cd4c48beb0d3494ccc17cc1e06b1473f9dc118db9bb56972395ede461
master
Neil Booth 8 years ago
parent
commit
9ac4718218
  1. 2
      lib/script.py

2
lib/script.py

@ -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…
Cancel
Save