Skip to content

Commit 2f2548d

Browse files
authored
Fix SIGHASH_SINGLE bug in test_framework SignatureHash
The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0
1 parent e82fb87 commit 2f2548d

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)