From 7984c39be11ca04460883365e1ae2a496aaa6c0e Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 27 Aug 2020 15:10:15 +0200 Subject: test framework: serialize/deserialize inv type as unsigned int --- test/functional/test_framework/messages.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/functional/test_framework/messages.py') diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index bd4a53876e..3b20c88fb0 100755 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -244,8 +244,8 @@ class CInv: MSG_TX | MSG_WITNESS_FLAG: "WitnessTx", MSG_BLOCK | MSG_WITNESS_FLAG: "WitnessBlock", MSG_FILTERED_BLOCK: "filtered Block", - 4: "CompactBlock", - 5: "WTX", + MSG_CMPCT_BLOCK: "CompactBlock", + MSG_WTX: "WTX", } def __init__(self, t=0, h=0): @@ -253,12 +253,12 @@ class CInv: self.hash = h def deserialize(self, f): - self.type = struct.unpack("