aboutsummaryrefslogtreecommitdiff
path: root/src/test/data/script_invalid.json
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-09-20 00:20:53 +0200
committerPieter Wuille <[email protected]>2014-09-22 19:26:17 +0200
commit76ec8677965570d344ef6f556920a00a47f54248 (patch)
tree100dbcc7515477a53bead449f043440e81611ef9 /src/test/data/script_invalid.json
parentMerge pull request #4765 (diff)
downloaddiscoin-76ec8677965570d344ef6f556920a00a47f54248.tar.xz
discoin-76ec8677965570d344ef6f556920a00a47f54248.zip
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 75de4716f..6c13fdf17 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"],