From b629a03c98521daf62f6b8b89aa82147d370ac26 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 5 Jan 2015 15:30:04 +1100 Subject: [PATCH] TxBuilder: rename prevOutMap to prevTxMap --- src/transaction_builder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index d05ee5b..ddddb1a 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -82,7 +82,7 @@ function extractSignature(txIn) { } function TransactionBuilder() { - this.prevOutMap = {} + this.prevTxMap = {} this.prevOutScripts = {} this.prevOutTypes = {} @@ -151,10 +151,10 @@ TransactionBuilder.prototype.addInput = function(prevTx, index, sequence, prevOu }), 'No, this would invalidate signatures') var prevOut = prevOutHash.toString('hex') + ':' + index - assert(!(prevOut in this.prevOutMap), 'Transaction is already an input') + assert(!(prevOut in this.prevTxMap), 'Transaction is already an input') var vout = this.tx.addInput(prevOutHash, index, sequence) - this.prevOutMap[prevOut] = true + this.prevTxMap[prevOut] = true this.prevOutScripts[vout] = prevOutScript this.prevOutTypes[vout] = prevOutType