Skip to content

Commit 9e7d213

Browse files
authored
Merge pull request bitcoin#796 from lukechilds/patch-2
[bip174] Fix typo in signer pseudo code
2 parents df22d72 + 7ab9ef9 commit 9e7d213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0174.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ sign_non_witness(script_code, i):
349349

350350
for input,i in enumerate(psbt.inputs):
351351
if non_witness_utxo.exists:
352-
assert(sha256d(non_witness_utxo) == psbt.tx.innput[i].prevout.hash)
352+
assert(sha256d(non_witness_utxo) == psbt.tx.input[i].prevout.hash)
353353
if redeemScript.exists:
354354
assert(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey == P2SH(redeemScript))
355355
sign_non_witness(redeemScript)

0 commit comments

Comments
 (0)