aboutsummaryrefslogtreecommitdiff
path: root/src/test/data/script_invalid.json
diff options
context:
space:
mode:
authorPeter Todd <[email protected]>2014-03-12 20:07:51 -0400
committerlangerhans <[email protected]>2014-06-29 16:15:37 +0200
commitd3fd2ce6b0a924a72bff8396595e0e45ec5abd9c (patch)
treea11fb44d542fe0a3482aa2184789ada117bde20d /src/test/data/script_invalid.json
parentrpc: keep track of acceptors, and cancel them in StopRPCThreads (diff)
downloaddiscoin-d3fd2ce6b0a924a72bff8396595e0e45ec5abd9c.tar.xz
discoin-d3fd2ce6b0a924a72bff8396595e0e45ec5abd9c.zip
Fix script test handling of empty scripts
Previously an empty script would evaluate to OP_0
Diffstat (limited to 'src/test/data/script_invalid.json')
-rw-r--r--src/test/data/script_invalid.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/data/script_invalid.json b/src/test/data/script_invalid.json
index 430942b4d..6b7d8372b 100644
--- a/src/test/data/script_invalid.json
+++ b/src/test/data/script_invalid.json
@@ -1,8 +1,18 @@
[
+["", "DEPTH", "Test the test: we should have an empty stack after scriptSig evaluation"],
+[" ", "DEPTH", "and multiple spaces should not change that."],
+[" ", "DEPTH"],
+[" ", "DEPTH"],
+
["", ""],
["", "NOP"],
+["", "NOP DEPTH"],
["NOP", ""],
+["NOP", "DEPTH"],
["NOP","NOP"],
+["NOP","NOP DEPTH"],
+
+["DEPTH", ""],
["0x4c01","0x01 NOP", "PUSHDATA1 with not enough bytes"],
["0x4d0200ff","0x01 NOP", "PUSHDATA2 with not enough bytes"],