Skip to content

Commit a6c3265

Browse files
committed
script: add redundant tests to math ops.
1 parent ab61103 commit a6c3265

File tree

2 files changed

+389
-0
lines changed

2 files changed

+389
-0
lines changed

test/data/script-tests.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10735,6 +10735,18 @@
1073510735
"flags": [],
1073610736
"result": "NEGATIVE_LOCKTIME"
1073710737
},
10738+
{
10739+
"comments": "CHECKLOCKTIMEVERIFY automatically fails if stack top is negative",
10740+
"script": "OP_CHECKLOCKTIMEVERIFY",
10741+
"value": 0,
10742+
"witness": [
10743+
"81"
10744+
],
10745+
"locktime": 0,
10746+
"sequence": 4294967295,
10747+
"flags": [],
10748+
"result": "NEGATIVE_LOCKTIME"
10749+
},
1073810750
{
1073910751
"comments": "CSV fails if stack top is not minimally encoded",
1074010752
"script": "OP_CHECKSEQUENCEVERIFY",

0 commit comments

Comments
 (0)