We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e311d27 commit d05bc12Copy full SHA for d05bc12
1 file changed
examples/spend-p2wsh-txout.py
@@ -69,8 +69,7 @@
69
# Create the unsigned transaction.
70
tx = CMutableTransaction([txin], [txout])
71
72
-# Calculate the signature hash for that transaction. Note how the script we use
73
-# is the witnessScript, not the redeemScript.
+# Calculate the signature hash for that transaction.
74
sighash = SignatureHash(script=txin_redeemScript, txTo=tx, inIdx=0,
75
hashtype=SIGHASH_ALL, amount=amount, sigversion=SIGVERSION_WITNESS_V0)
76
0 commit comments