aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/messages.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-12-11 13:26:41 -0500
committerMarcoFalke <falke.marco@gmail.com>2018-12-11 13:23:24 -0500
commitfae3617d79deee73dd375dc3ea5f4204a74420c5 (patch)
tree7eaa802175b61d279afb6b1a2407a92728f242dd /test/functional/test_framework/messages.py
parent234b99b9210c0a18fca10dfa75331a68f8e74a13 (diff)
downloadbitcoin-fae3617d79deee73dd375dc3ea5f4204a74420c5.tar.xz
test: Correctly deserialize without witness
Diffstat (limited to 'test/functional/test_framework/messages.py')
-rwxr-xr-xtest/functional/test_framework/messages.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py
index c72cb8835c..9dbe78a3c5 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("<I", f.read(4))[0]
self.sha256 = None
self.hash = None