Skip to content

Commit d05bc12

Browse files
committed
also fix a comment about redeemScript for p2wsh
1 parent e311d27 commit d05bc12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/spend-p2wsh-txout.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
# Create the unsigned transaction.
7070
tx = CMutableTransaction([txin], [txout])
7171

72-
# Calculate the signature hash for that transaction. Note how the script we use
73-
# is the witnessScript, not the redeemScript.
72+
# Calculate the signature hash for that transaction.
7473
sighash = SignatureHash(script=txin_redeemScript, txTo=tx, inIdx=0,
7574
hashtype=SIGHASH_ALL, amount=amount, sigversion=SIGVERSION_WITNESS_V0)
7675

0 commit comments

Comments
 (0)