From 623a3e9f28a41906871f8d1d558d0e86065d80fa Mon Sep 17 00:00:00 2001 From: zebra-lucky Date: Sat, 2 Nov 2024 13:52:53 +0200 Subject: [PATCH] onionmc.py: another fix to simplify testing --- electrum/plugins/joinmarket/jmdaemon/onionmc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/plugins/joinmarket/jmdaemon/onionmc.py b/electrum/plugins/joinmarket/jmdaemon/onionmc.py index de3b77aa2..432aa000e 100644 --- a/electrum/plugins/joinmarket/jmdaemon/onionmc.py +++ b/electrum/plugins/joinmarket/jmdaemon/onionmc.py @@ -250,6 +250,7 @@ class OnionPeer: location_tuple: Tuple[str, int], directory: bool = False, nick: str = "", handshake_callback: Callable = None): + self.client_service_cls = TorClientService # reference to the managing OnionMessageChannel instance is # needed so that we know where to send the messages received # from this peer: @@ -432,7 +433,7 @@ class OnionPeer: # non-default timeout; needs to be much lower than our # 'wait at least a minute for the IRC connections to come up', # which is used for *all* message channels, together. - self.reconnecting_service = TorClientService( + self.reconnecting_service = self.client_service_cls( self.factory, CONNECT_TO_ONION_TIMEOUT, self.socks5_host, self.socks5_port, self.hostname, self.port) # if we want to actually do something about an unreachable host,