File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -494,20 +494,20 @@ for input,i in enumerate(psbt.inputs):
494494 assert(sha256d(non_witness_utxo) == psbt.tx.input[i].prevout.hash)
495495 if redeemScript.exists:
496496 assert(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey == P2SH(redeemScript))
497- sign_non_witness(redeemScript)
497+ sign_non_witness(redeemScript, i )
498498 else:
499- sign_non_witness(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey)
499+ sign_non_witness(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey, i )
500500 else if witness_utxo.exists:
501501 if redeemScript.exists:
502502 assert(witness_utxo.scriptPubKey == P2SH(redeemScript))
503503 script = redeemScript
504504 else:
505505 script = witness_utxo.scriptPubKey
506506 if IsP2WPKH(script):
507- sign_witness(P2PKH(script[2:22]))
507+ sign_witness(P2PKH(script[2:22]), i )
508508 else if IsP2WSH(script):
509509 assert(script == P2WSH(witnessScript))
510- sign_witness(witnessScript)
510+ sign_witness(witnessScript, i )
511511 else:
512512 assert False
513513</pre>
You can’t perform that action at this time.
0 commit comments