From 76ec8677965570d344ef6f556920a00a47f54248 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sat, 20 Sep 2014 00:20:53 +0200 Subject: Use actually valid transactions for script tests --- src/test/data/script_valid.json | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/test/data/script_valid.json') diff --git a/src/test/data/script_valid.json b/src/test/data/script_valid.json index c1db4c606..7fa74c1ca 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"], -- cgit v1.2.3