mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
Fix SIGHASH_SINGLE bug in test_framework SignatureHash
The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0
This commit is contained in:
@ -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)):
|
||||||
|
Reference in New Issue
Block a user