1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-02-23 15:38:22 +00:00

Merge pull request #796 from lukechilds/patch-2

[bip174] Fix typo in signer pseudo code
This commit is contained in:
Luke Dashjr
2019-09-19 22:18:45 +00:00
committed by GitHub

View File

@@ -349,7 +349,7 @@ sign_non_witness(script_code, i):
for input,i in enumerate(psbt.inputs):
if non_witness_utxo.exists:
assert(sha256d(non_witness_utxo) == psbt.tx.innput[i].prevout.hash)
assert(sha256d(non_witness_utxo) == psbt.tx.input[i].prevout.hash)
if redeemScript.exists:
assert(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey == P2SH(redeemScript))
sign_non_witness(redeemScript)