From f8976434ed17a9d5ff6c1bf9e78ee1b58ddac3f4 Mon Sep 17 00:00:00 2001 From: Gleb Naumenko Date: Thu, 11 Nov 2021 09:14:09 +0300 Subject: [PATCH] Add functional test support for sendrecon message This is needed to pass existing functional tests. --- test/functional/test_framework/messages.py | 28 ++++++++++++++++++++++ test/functional/test_framework/p2p.py | 3 +++ 2 files changed, 31 insertions(+) diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index f57b6e74944d7..a261b944ef3c0 100755 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -1817,3 +1817,31 @@ def serialize(self): def __repr__(self): return "msg_cfcheckpt(filter_type={:#x}, stop_hash={:x})".format( self.filter_type, self.stop_hash) + +class msg_sendrecon: + __slots__ = ("initiator", "responder", "version", "salt") + msgtype = b"sendrecon" + + def __init__(self): + self.initiator = False + self.responder = False + self.version = 0 + self.salt = 0 + + def deserialize(self, f): + self.initiator = struct.unpack("