From fae3617d79deee73dd375dc3ea5f4204a74420c5 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 11 Dec 2018 13:26:41 -0500 Subject: [PATCH] test: Correctly deserialize without witness --- test/functional/test_framework/messages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index c72cb8835c1..9dbe78a3c55 100755 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -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("