Skip to content
Permalink
Browse files

Merge branch 'update-script-tests'

  • Loading branch information...
petertodd committed Mar 30, 2016
2 parents 43530c8 + c96d062 commit 144bf8fd171acc56f4c5c4fc42e3d52176f6764f
Showing with 1,360 additions and 770 deletions.
  1. +5 −1 bitcoin/core/scripteval.py
  2. +467 −315 bitcoin/tests/data/script_invalid.json
  3. +859 −447 bitcoin/tests/data/script_valid.json
  4. +29 −7 bitcoin/tests/test_scripteval.py
@@ -484,6 +484,8 @@ def check_args(n):
if sop != OP_CHECKSIGVERIFY:
stack.append(b"\x01")
else:
# FIXME: this is incorrect, but not caught by existing
# test cases
stack.append(b"\x00")

elif sop == OP_CODESEPARATOR:
@@ -520,7 +522,7 @@ def check_args(n):
if v1 == v2:
stack.append(b"\x01")
else:
stack.append(b"\x00")
stack.append(b"")

elif sop == OP_EQUALVERIFY:
check_args(2)
@@ -657,6 +659,8 @@ def check_args(n):
if v:
stack.append(b"\x01")
else:
# FIXME: this is incorrect, but not caught by existing
# test cases
stack.append(b"\x00")

else:

0 comments on commit 144bf8f

Please sign in to comment.
You can’t perform that action at this time.