[test] Serialize CTransaction with witness by default
This commit is contained in:
1 parent
cf2c0b6f5c
commit
57273f2b30
4 files changed
+21
-15
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user