[test] Serialize CTransaction with witness by default

This commit is contained in:
Pieter Wuille 2017-11-30 16:49:01 -08:00
parent cf2c0b6f5c
commit 57273f2b30
4 changed files with 21 additions and 15 deletions
test/functional/test_framework

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)