Test canonical prunable txout format explicitly

This commit is contained in:
Peter Todd 2013-03-01 02:39:22 -05:00
parent 6131d1d9df
commit 091f184190
2 changed files with 5 additions and 0 deletions

View file

@ -39,6 +39,9 @@
["1", "RETURN"], ["1", "RETURN"],
["1", "DUP IF RETURN ENDIF"], ["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"], ["0", "VERIFY 1"],
["1", "VERIFY"], ["1", "VERIFY"],
["1", "VERIFY 0"], ["1", "VERIFY 0"],

View file

@ -34,6 +34,8 @@
["1 0", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF"], ["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 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"], ["1 1", "VERIFY"],
["10 0 11 TOALTSTACK DROP FROMALTSTACK", "ADD 21 EQUAL"], ["10 0 11 TOALTSTACK DROP FROMALTSTACK", "ADD 21 EQUAL"],