Skip to content

Commit

Permalink
Set exitnode cache path on Tunnel community initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
xoriole committed Sep 17, 2021
1 parent 42464c0 commit 68fbad7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand Down

0 comments on commit 68fbad7

Please sign in to comment.