Skip to content

Commit fae3617

Browse files
author
MarcoFalke
committed
test: Correctly deserialize without witness
1 parent 234b99b commit fae3617

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/test_framework/messages.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ def deserialize(self, f):
450450
if flags != 0:
451451
self.wit.vtxinwit = [CTxInWitness() for i in range(len(self.vin))]
452452
self.wit.deserialize(f)
453+
else:
454+
self.wit = CTxWitness()
453455
self.nLockTime = struct.unpack("<I", f.read(4))[0]
454456
self.sha256 = None
455457
self.hash = None

0 commit comments

Comments
 (0)