From 302b4f079652525c80287cc3fb28da3379fc7eb1 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Tue, 27 Sep 2016 16:31:09 +1000 Subject: [PATCH] TransactionBuilder: signatureScript is only defined once --- src/transaction_builder.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index c635754..08ac655 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -424,7 +424,6 @@ TransactionBuilder.prototype.sign = function (index, keyPair, redeemScript, hash input.signatures.length === input.pubKeys.length var kpPubKey = keyPair.getPublicKeyBuffer() - var signatureScript // are we ready to sign? if (canSign) { @@ -482,7 +481,7 @@ TransactionBuilder.prototype.sign = function (index, keyPair, redeemScript, hash } // ready to sign? - signatureScript = signatureScript || input.redeemScript || input.prevOutScript + var signatureScript = input.redeemScript || input.prevOutScript var signatureHash = this.tx.hashForSignature(index, signatureScript, hashType) // enforce in order signing of public keys