From 0b9b30a8c5dd3b0af1460286c0b0ac6742daa596 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 21 Jul 2017 12:16:55 +1000 Subject: [PATCH] tests: re-add missing transaction_builder missing sigs test --- test/fixtures/transaction_builder.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/test/fixtures/transaction_builder.json b/test/fixtures/transaction_builder.json index ce95c20..4094456 100644 --- a/test/fixtures/transaction_builder.json +++ b/test/fixtures/transaction_builder.json @@ -1702,6 +1702,32 @@ } ] }, + { + "description": "Incpmplete transactions, known prevTxScript type, therefore throws for missing signatures", + "exception": "Not enough signatures provided", + "inputs": [ + { + "txId": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "vout": 0, + "signs": [ + { + "keyPair": "KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn" + } + ] + }, + { + "txId": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "vout": 1, + "prevTxScript": "OP_DUP OP_HASH160 aa4d7985c57e011a8b3dd8e0e5a73aaef41629c5 OP_EQUALVERIFY OP_CHECKSIG" + } + ], + "outputs": [ + { + "script": "OP_DUP OP_HASH160 aa4d7985c57e011a8b3dd8e0e5a73aaef41629c5 OP_EQUALVERIFY OP_CHECKSIG", + "value": 1000 + } + ] + }, { "description": "Duplicate transaction outs", "exception": "Duplicate TxOut: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff:0",