aboutsummaryrefslogtreecommitdiff
path: root/src/test/data/script_invalid.json
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-09-20 00:20:53 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-22 19:26:17 +0200
commit76ec8677965570d344ef6f556920a00a47f54248 (patch)
tree100dbcc7515477a53bead449f043440e81611ef9 /src/test/data/script_invalid.json
parentcb9871194a7fffe8bc0a53ea820b1a395e79e283 (diff)
downloadbitcoin-76ec8677965570d344ef6f556920a00a47f54248.tar.xz
Use actually valid transactions for script tests
Diffstat (limited to 'src/test/data/script_invalid.json')
-rw-r--r--src/test/data/script_invalid.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/data/script_invalid.json b/src/test/data/script_invalid.json
index 75de4716f8..6c13fdf175 100644
--- a/src/test/data/script_invalid.json
+++ b/src/test/data/script_invalid.json
@@ -1,4 +1,13 @@
[
+["
+Format is: [scriptPubKey, scriptSig, flags, ... comments]
+It is evaluated as if there was a crediting coinbase transaction with two 0
+pushes as scriptSig, and one output of 0 satoshi and given scriptPubKey,
+followed by a spending transaction which spends this output as only input (and
+correct prevout hash), using the given scriptSig. All nLockTimes are 0, all
+nSequences are max.
+"],
+
["", "DEPTH", "P2SH,STRICTENC", "Test the test: we should have an empty stack after scriptSig evaluation"],
[" ", "DEPTH", "P2SH,STRICTENC", "and multiple spaces should not change that."],
[" ", "DEPTH", "P2SH,STRICTENC"],