[test] Serialize CTransaction with witness by default

This commit is contained in:
Pieter Wuille committed 2018-01-09 15:27:55 -08:00
1 parent cf2c0b6f5c
commit 57273f2b30
4 files changed
+21 -15

No files matched your search

+1 -1
View File
@@ -641,7 +641,7 @@ def SignatureHash(script, txTo, inIdx, hashtype):
txtmp.vin = []
txtmp.vin.append(tmp)
s = txtmp.serialize()
s = txtmp.serialize_without_witness()
s += struct.pack(b"<I", hashtype)
hash = hash256(s)