From c06df2df8af985e8f5c1ac410821bc6c7491a176 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Tue, 18 Aug 2015 14:55:01 +1000 Subject: [PATCH] TxBuilder: fix equals is undefined in Node 0.10 --- src/transaction_builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 080363e..465c661 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -305,7 +305,7 @@ TransactionBuilder.prototype.sign = function (index, keyPair, redeemScript, hash if (canSign) { // if redeemScript was provided, enforce consistency if (redeemScript) { - if (!input.redeemScript.equals(redeemScript)) throw new Error('Inconsistent redeemScript') + if (!bufferutils.equal(input.redeemScript, redeemScript)) throw new Error('Inconsistent redeemScript') } if (input.hashType !== hashType) throw new Error('Inconsistent hashType')