From 7f62069d82735e16b8d725e8d5c8645e347efe8b Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 25 Jul 2014 18:30:39 +1000 Subject: [PATCH] TxBuilder: add sequence number passthrough --- src/transaction_builder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 5a86ffb..c3d3507 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -14,7 +14,7 @@ function TransactionBuilder() { this.tx = new Transaction() } -TransactionBuilder.prototype.addInput = function(prevTx, index, prevOutScript) { +TransactionBuilder.prototype.addInput = function(prevTx, index, prevOutScript, sequence) { var prevOutHash if (typeof prevTx === 'string') { @@ -46,7 +46,7 @@ TransactionBuilder.prototype.addInput = function(prevTx, index, prevOutScript) { var prevOut = prevOutHash.toString('hex') + ':' + index assert(!(prevOut in this.prevOutMap), 'Transaction is already an input') - var vout = this.tx.addInput(prevOutHash, index) + var vout = this.tx.addInput(prevOutHash, index, sequence) this.prevOutMap[prevOut] = true this.prevOutScripts[vout] = prevOutScript this.prevOutTypes[vout] = prevOutType