mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-02 08:51:21 +01:00
[test] Serialize CTransaction with witness by default
This commit is contained in:
@@ -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