mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
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:
commit
2a0836f6d5
@ -882,7 +882,7 @@ def SignatureHash(script, txTo, inIdx, hashtype):
|
|||||||
tmp = txtmp.vout[outIdx]
|
tmp = txtmp.vout[outIdx]
|
||||||
txtmp.vout = []
|
txtmp.vout = []
|
||||||
for i in range(outIdx):
|
for i in range(outIdx):
|
||||||
txtmp.vout.append(CTxOut())
|
txtmp.vout.append(CTxOut(-1))
|
||||||
txtmp.vout.append(tmp)
|
txtmp.vout.append(tmp)
|
||||||
|
|
||||||
for i in range(len(txtmp.vin)):
|
for i in range(len(txtmp.vin)):
|
||||||
|
Loading…
Reference in New Issue
Block a user