From 31ea956e8e0cc00ad1590565b3475e031df0d0a0 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 16 Jul 2014 23:39:20 +1000 Subject: [PATCH] TxBuilder: add invalid nulldata case --- test/fixtures/transaction_builder.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/fixtures/transaction_builder.json b/test/fixtures/transaction_builder.json index 3fbc794..4301cda 100644 --- a/test/fixtures/transaction_builder.json +++ b/test/fixtures/transaction_builder.json @@ -115,6 +115,23 @@ "value": 1000 } ] + }, + { + "exception": "nulldata not supported", + "inputs": [ + { + "index": 0, + "prevTx": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "prevTxScript": "OP_RETURN 06deadbeef03f895a2ad89fb6d696497af486cb7c644a27aa568c7a18dd06113401115185474", + "privKeys": ["KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn"] + } + ], + "outputs": [ + { + "script": "OP_DUP OP_HASH160 aa4d7985c57e011a8b3dd8e0e5a73aaef41629c5 OP_EQUALVERIFY OP_CHECKSIG", + "value": 1000 + } + ] } ] }