diff options
author | Peter Todd <pete@petertodd.org> | 2013-03-01 02:39:22 -0500 |
---|---|---|
committer | Peter Todd <pete@petertodd.org> | 2013-03-01 02:41:28 -0500 |
commit | 091f18419011bfee6242270e52237f524ca23c8e (patch) | |
tree | 0ceb949f189496969e968dd577306ab457a727cf /src/test | |
parent | 6131d1d9dfadc9e78e64574209a8014dcb4c8244 (diff) |
Test canonical prunable txout format explicitly
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/data/script_invalid.json | 3 | ||||
-rw-r--r-- | src/test/data/script_valid.json | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/test/data/script_invalid.json b/src/test/data/script_invalid.json index b49b32936e..95664226c5 100644 --- a/src/test/data/script_invalid.json +++ b/src/test/data/script_invalid.json @@ -39,6 +39,9 @@ ["1", "RETURN"], ["1", "DUP IF RETURN ENDIF"], +["1", "RETURN 'data'", "canonical prunable txout format"], +["0 IF", "RETURN ENDIF 1", "still prunable because IF/ENDIF can't span scriptSig/scriptPubKey"], + ["0", "VERIFY 1"], ["1", "VERIFY"], ["1", "VERIFY 0"], diff --git a/src/test/data/script_valid.json b/src/test/data/script_valid.json index 7624c5f456..58682d3875 100644 --- a/src/test/data/script_valid.json +++ b/src/test/data/script_valid.json @@ -34,6 +34,8 @@ ["1 0", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF"], ["0 1", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF"], +["0", "IF RETURN ENDIF 1", "RETURN only works if executed"], + ["1 1", "VERIFY"], ["10 0 11 TOALTSTACK DROP FROMALTSTACK", "ADD 21 EQUAL"], |