txbuilder: fix #374 null inputs
This commit is contained in:
parent
886d38ebee
commit
0e0a12da27
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ TransactionBuilder.fromTransaction = function (transaction) {
|
||||||
assert(!Transaction.isCoinbaseHash(txIn.hash), 'coinbase inputs not supported')
|
assert(!Transaction.isCoinbaseHash(txIn.hash), 'coinbase inputs not supported')
|
||||||
|
|
||||||
// Ignore empty scripts
|
// Ignore empty scripts
|
||||||
if (txIn.script.buffer.length === 0) return
|
if (txIn.script.buffer.length === 0) return {}
|
||||||
|
|
||||||
return extractInput(txIn)
|
return extractInput(txIn)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue