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 @@ -637,20 +637,20 @@ for input,i in enumerate(psbt.inputs):
637637 assert(sha256d(non_witness_utxo) == psbt.tx.input[i].prevout.hash)
638638 if redeemScript.exists:
639639 assert(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey == P2SH(redeemScript))
640- sign_non_witness(redeemScript)
640+ sign_non_witness(redeemScript, i )
641641 else:
642- sign_non_witness(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey)
642+ sign_non_witness(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey, i )
643643 else if witness_utxo.exists:
644644 if redeemScript.exists:
645645 assert(witness_utxo.scriptPubKey == P2SH(redeemScript))
646646 script = redeemScript
647647 else:
648648 script = witness_utxo.scriptPubKey
649649 if IsP2WPKH(script):
650- sign_witness(P2PKH(script[2:22]))
650+ sign_witness(P2PKH(script[2:22]), i )
651651 else if IsP2WSH(script):
652652 assert(script == P2WSH(witnessScript))
653- sign_witness(witnessScript)
653+ sign_witness(witnessScript, i )
654654 else:
655655 assert False
656656</pre>
You can’t perform that action at this time.
0 commit comments