Skip to content

Commit 7f62069

Browse files
committed
TxBuilder: add sequence number passthrough
1 parent f3199b6 commit 7f62069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transaction_builder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function TransactionBuilder() {
1414
this.tx = new Transaction()
1515
}
1616

17-
TransactionBuilder.prototype.addInput = function(prevTx, index, prevOutScript) {
17+
TransactionBuilder.prototype.addInput = function(prevTx, index, prevOutScript, sequence) {
1818
var prevOutHash
1919

2020
if (typeof prevTx === 'string') {
@@ -46,7 +46,7 @@ TransactionBuilder.prototype.addInput = function(prevTx, index, prevOutScript) {
4646
var prevOut = prevOutHash.toString('hex') + ':' + index
4747
assert(!(prevOut in this.prevOutMap), 'Transaction is already an input')
4848

49-
var vout = this.tx.addInput(prevOutHash, index)
49+
var vout = this.tx.addInput(prevOutHash, index, sequence)
5050
this.prevOutMap[prevOut] = true
5151
this.prevOutScripts[vout] = prevOutScript
5252
this.prevOutTypes[vout] = prevOutType

0 commit comments

Comments
 (0)