From 9e5aac8bacda8e9c1fe09c172f1a3676c5127c6e Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 28 Sep 2016 01:05:15 +1000 Subject: [PATCH] TransactionBuilder: fix duplicate txOut detection --- 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 0c02ce0..e10ca64 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -246,7 +246,7 @@ TransactionBuilder.prototype.__addInputUnsafe = function (txHash, vout, sequence var vin = this.tx.addInput(txHash, vout, sequence, scriptSig) this.inputs[vin] = input - this.prevTxMap[prevTxOut] = vin + this.prevTxMap[prevTxOut] = true return vin }