Fix SIGHASH_SINGLE bug in test_framework SignatureHash

The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0

Github-Pull: #8667
Rebased-From: 2f2548d5e0
This commit is contained in:
Johnson Lau 2016-09-06 00:50:23 +08:00 committed by Luke Dashjr
parent a114a0208b
commit 6b07362b37
1 changed files with 1 additions and 1 deletions

View File

@ -882,7 +882,7 @@ def SignatureHash(script, txTo, inIdx, hashtype):
tmp = txtmp.vout[outIdx]
txtmp.vout = []
for i in range(outIdx):
txtmp.vout.append(CTxOut())
txtmp.vout.append(CTxOut(-1))
txtmp.vout.append(tmp)
for i in range(len(txtmp.vin)):