From 3d1ed2308418a14defaf63cb7dd4993f80f74dad Mon Sep 17 00:00:00 2001 From: Sandip Pandey Date: Thu, 16 Sep 2021 17:00:06 +0200 Subject: [PATCH] Set exitnode cache path on Tunnel community initialization --- .../tribler_core/components/implementation/tunnels.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tribler-core/tribler_core/components/implementation/tunnels.py b/src/tribler-core/tribler_core/components/implementation/tunnels.py index 57a3cbd2cbe..d9fbfe794a7 100644 --- a/src/tribler-core/tribler_core/components/implementation/tunnels.py +++ b/src/tribler-core/tribler_core/components/implementation/tunnels.py @@ -47,6 +47,7 @@ async def run(self): tunnel_cls = TriblerTunnelCommunity provider = DHTCommunityProvider(dht_discovery_community, config.ipv8.port) if dht_discovery_community else None + exitnode_cache = config.state_dir / "exitnode_cache.dat" # TODO: decouple bandwidth community and dlmgr to initiate later community = tunnel_cls(peer, ipv8.endpoint, ipv8.network, @@ -56,6 +57,7 @@ async def run(self): dlmgr=download_manager, bandwidth_community=bandwidth_community, dht_provider=provider, + exitnode_cache=exitnode_cache, settings=settings) # Value of `target_peers` must not be equal to the value of `max_peers` for this community.