Fix SIGHASH_SINGLE bug in test_framework SignatureHash

The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0
pull/8667/head
Johnson Lau 8 years ago committed by GitHub
parent e82fb872ff
commit 2f2548d5e0

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

Loading…
Cancel
Save