diff options
| author | Johnson Lau <[email protected]> | 2016-09-06 00:50:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-09-06 00:50:23 +0800 |
| commit | 2f2548d5e0ccea6879eb7b0b851d61ad2f544423 (patch) | |
| tree | 5e9dc74e5ad895930a7c1fa7b042408f952fc879 /qa/rpc-tests/test_framework | |
| parent | Merge #8651: Predeclare PrecomputedTransactionData as struct (diff) | |
| download | discoin-2f2548d5e0ccea6879eb7b0b851d61ad2f544423.tar.xz discoin-2f2548d5e0ccea6879eb7b0b851d61ad2f544423.zip | |
Fix SIGHASH_SINGLE bug in test_framework SignatureHash
The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0
Diffstat (limited to 'qa/rpc-tests/test_framework')
| -rw-r--r-- | qa/rpc-tests/test_framework/script.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/script.py b/qa/rpc-tests/test_framework/script.py index b46c643cc..83bbf2047 100644 --- a/qa/rpc-tests/test_framework/script.py +++ b/qa/rpc-tests/test_framework/script.py @@ -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)): |