Merge #8667: Fix SIGHASH_SINGLE bug in test_framework SignatureHash

2f2548d Fix SIGHASH_SINGLE bug in test_framework SignatureHash (Johnson Lau)
This commit is contained in:
MarcoFalke 2016-09-09 23:20:16 +02:00 committed by Alexander Block
parent 3baee7ba24
commit 85c0aabc11

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)):