txbuilder: fix #374 null inputs
This commit is contained in:
parent
886d38ebee
commit
0e0a12da27
@ -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…
Reference in New Issue
Block a user