test: Correctly deserialize without witness

pull/14925/head
MarcoFalke 6 years ago
parent 234b99b921
commit fae3617d79
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

@ -450,6 +450,8 @@ class CTransaction:
if flags != 0:
self.wit.vtxinwit = [CTxInWitness() for i in range(len(self.vin))]
self.wit.deserialize(f)
else:
self.wit = CTxWitness()
self.nLockTime = struct.unpack("<I", f.read(4))[0]
self.sha256 = None
self.hash = None

Loading…
Cancel
Save