diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-20 00:20:53 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-22 19:26:17 +0200 |
commit | 76ec8677965570d344ef6f556920a00a47f54248 (patch) | |
tree | 100dbcc7515477a53bead449f043440e81611ef9 /src/test/data/script_valid.json | |
parent | cb9871194a7fffe8bc0a53ea820b1a395e79e283 (diff) |
Use actually valid transactions for script tests
Diffstat (limited to 'src/test/data/script_valid.json')
-rw-r--r-- | src/test/data/script_valid.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/data/script_valid.json b/src/test/data/script_valid.json index c1db4c6061..7fa74c1ca3 100644 --- a/src/test/data/script_valid.json +++ b/src/test/data/script_valid.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 0 EQUAL", "P2SH,STRICTENC", "Test the test: we should have an empty stack after scriptSig evaluation"], [" ", "DEPTH 0 EQUAL", "P2SH,STRICTENC", "and multiple spaces should not change that."], [" ", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], |