From 4d08ae5a8a5a29ce9431a229d334bc6bee0e3847 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Tue, 10 Mar 2015 20:17:11 +1100 Subject: [PATCH] tests: clean up unused variables --- test/transaction_builder.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/transaction_builder.js b/test/transaction_builder.js index 21f1a39..31dbacb 100644 --- a/test/transaction_builder.js +++ b/test/transaction_builder.js @@ -230,6 +230,7 @@ describe('TransactionBuilder', function () { txb.addInput(input.txId, input.vout) signs = Math.max(signs, input.signs.length) }) + f.outputs.forEach(function (output) { txb.addOutput(Script.fromASM(output.script), output.value) }) @@ -240,7 +241,6 @@ describe('TransactionBuilder', function () { }) var tx - var forceFixMultisigSigOrder = false for (var i = 0; i < signs; i++) { if (tx) { @@ -250,7 +250,7 @@ describe('TransactionBuilder', function () { f.inputs.forEach(function (input, index) { var privKey = bitcoin.ECKey.fromWIF(input.signs[i].privKey) var redeemScript = bitcoin.Script.fromASM(input.redeemScript) - txb.sign(index, privKey, redeemScript, null, forceFixMultisigSigOrder) + txb.sign(index, privKey, redeemScript) }) tx = txb.buildIncomplete() @@ -262,8 +262,6 @@ describe('TransactionBuilder', function () { })) }) - forceFixMultisigSigOrder = false - // manually mess up the signatures f.inputs.forEach(function (input, index) { // remove all OP_0s @@ -281,9 +279,7 @@ describe('TransactionBuilder', function () { assert.equal(tx.toHex(), f.txHexIncomplete, 'txHexIncomplete') tx = txb.build() - assert.equal(tx.toHex(), f.txHexComplete, 'txHexComplete') - }) }) })