Open xhliu opened 3 years ago
To reproduce the bug, use:
Unlocking script: OP_1 Locking script: OP_1 OP_RETURN
Enable Interp.SCRIPT_VERIFY_P2SH | Interp.SCRIPT_VERIFY_CLEANSTACK.
Interp.SCRIPT_VERIFY_P2SH | Interp.SCRIPT_VERIFY_CLEANSTACK
Seen: Currently script evaluation returns true, since stackCopy is stack with one element 1.
stackCopy
Expected: When OP_RETURN finishes, there are two elements on stack, both 1's. Should return false instead.
OP_RETURN
To reproduce the bug, use:
Enable
Interp.SCRIPT_VERIFY_P2SH | Interp.SCRIPT_VERIFY_CLEANSTACK
.Seen: Currently script evaluation returns true, since
stackCopy
is stack with one element 1.Expected: When
OP_RETURN
finishes, there are two elements on stack, both 1's. Should return false instead.