Browse Source

Merge #8667: Fix SIGHASH_SINGLE bug in test_framework SignatureHash

2f2548d Fix SIGHASH_SINGLE bug in test_framework SignatureHash (Johnson Lau)
0.14
MarcoFalke 8 years ago
parent
commit
2a0836f6d5
No known key found for this signature in database
GPG Key ID: 2D7F2372E50FE137
  1. 2
      qa/rpc-tests/test_framework/script.py

2
qa/rpc-tests/test_framework/script.py

@ -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…
Cancel
Save