Skip to content

Commit

Permalink
Added AllChannel2 to LaunchManyCore
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed May 10, 2018
1 parent 66fa14a commit 8c7fbfb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tribler/Core/APIImplementation/LaunchManyCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,19 @@ def load_ipv8_overlays(self):
if not self.session.config.get_dispersy_enabled():
self.ipv8.strategies.append((RandomWalk(discovery_community), 20))

# AllChannel2 Community
if self.session.config.get_channel_search_enabled():
triblerchain_peer = Peer(self.session.trustchain_keypair)
from Tribler.community.allchannel2.community import AllChannel2Community

channel_directory = os.path.join(self.session.config.get_state_dir(), u"channels")
self.allchannel2_community = AllChannel2Community(triblerchain_peer, self.ipv8.endpoint,
self.ipv8.network,
tribler_session=self.session,
working_directory=channel_directory)
self.ipv8.overlays.append(self.allchannel2_community)
self.ipv8.strategies.append((RandomWalk(self.allchannel2_community), 20))

# TriblerChain Community
if self.session.config.get_trustchain_enabled():
triblerchain_peer = Peer(self.session.trustchain_keypair)
Expand Down

0 comments on commit 8c7fbfb

Please sign in to comment.