Skip to content

Commit

Permalink
Fix #6283
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Sep 16, 2021
1 parent ceaca6b commit 9039d57
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ async def run(self):
else:
tunnel_cls = TriblerTunnelCommunity

provider = DHTCommunityProvider(dht_discovery_community, config.ipv8.port) if dht_discovery_community else None

# TODO: decouple bandwidth community and dlmgr to initiate later
community = tunnel_cls(peer, ipv8.endpoint, ipv8.network,
socks_servers=socks_servers,
config=config.tunnel_community,
notifier=self.session.notifier,
dlmgr=download_manager,
bandwidth_community=bandwidth_community,
dht_provider=DHTCommunityProvider(dht_discovery_community, config.ipv8.port),
dht_provider=provider,
settings=settings)
ipv8.strategies.append((RandomWalk(community), 30))
ipv8.strategies.append((RemovePeers(community), INFINITE))
Expand Down

0 comments on commit 9039d57

Please sign in to comment.