Skip to content

Commit 2a0836f

Browse files
author
MarcoFalke
committed
Merge #8667: Fix SIGHASH_SINGLE bug in test_framework SignatureHash
2f2548d Fix SIGHASH_SINGLE bug in test_framework SignatureHash (Johnson Lau)
2 parents 702e6e0 + 2f2548d commit 2a0836f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/rpc-tests/test_framework/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ def SignatureHash(script, txTo, inIdx, hashtype):
882882
tmp = txtmp.vout[outIdx]
883883
txtmp.vout = []
884884
for i in range(outIdx):
885-
txtmp.vout.append(CTxOut())
885+
txtmp.vout.append(CTxOut(-1))
886886
txtmp.vout.append(tmp)
887887

888888
for i in range(len(txtmp.vin)):

0 commit comments

Comments
 (0)