TransactionBuilder: if prevOutScript is defined, but not signable, try 1 last time
This commit is contained in:
parent
aaa327b793
commit
17377381c4
3 changed files with 65 additions and 27 deletions
|
@ -23,11 +23,11 @@ function construct (f, sign) {
|
|||
f.inputs.forEach(function (input) {
|
||||
var prevTxScript
|
||||
|
||||
if (input.prevTxScript) {
|
||||
if (!input.txHex && input.prevTxScript) {
|
||||
prevTxScript = bscript.fromASM(input.prevTxScript)
|
||||
}
|
||||
|
||||
txb.addInput(input.txId, input.vout, input.sequence, prevTxScript)
|
||||
txb.addInput(input.txId || Transaction.fromHex(input.txHex), input.vout, input.sequence, prevTxScript)
|
||||
})
|
||||
|
||||
f.outputs.forEach(function (output) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue