From 5b0186bf3c90d6d47f74d3864c346a091e037ae7 Mon Sep 17 00:00:00 2001 From: zebra-lucky Date: Sat, 2 Nov 2024 14:54:44 +0200 Subject: [PATCH] onionmc.py: additional fix on client_service_cls --- electrum/plugins/joinmarket/jmdaemon/onionmc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electrum/plugins/joinmarket/jmdaemon/onionmc.py b/electrum/plugins/joinmarket/jmdaemon/onionmc.py index 432aa000e..c26aee55e 100644 --- a/electrum/plugins/joinmarket/jmdaemon/onionmc.py +++ b/electrum/plugins/joinmarket/jmdaemon/onionmc.py @@ -250,7 +250,7 @@ class OnionPeer: location_tuple: Tuple[str, int], directory: bool = False, nick: str = "", handshake_callback: Callable = None): - self.client_service_cls = TorClientService + self.client_service_cls = messagechannel.client_service_cls # reference to the managing OnionMessageChannel instance is # needed so that we know where to send the messages received # from this peer: @@ -556,7 +556,8 @@ class OnionMessageChannel(MessageChannel): dynamically from messages seen. """ - def __init__(self, jmman, configdata): + def __init__(self, jmman, configdata, client_service_cls=TorClientService): + self.client_service_cls = client_service_cls self.jmman = jmman self.logger = jmman.logger MessageChannel.__init__(self)