diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-12-11 13:26:41 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-12-11 13:23:24 -0500 |
commit | fae3617d79deee73dd375dc3ea5f4204a74420c5 (patch) | |
tree | 7eaa802175b61d279afb6b1a2407a92728f242dd /test/functional/test_framework/messages.py | |
parent | 234b99b9210c0a18fca10dfa75331a68f8e74a13 (diff) | |
download | bitcoin-fae3617d79deee73dd375dc3ea5f4204a74420c5.tar.xz |
test: Correctly deserialize without witness
Diffstat (limited to 'test/functional/test_framework/messages.py')
-rwxr-xr-x | test/functional/test_framework/messages.py | 2 |
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 |