Skip to content

Commit

Permalink
Added PeriodicSimilarity strategy in DiscoveryCommunity
Browse files Browse the repository at this point in the history
  • Loading branch information
xoriole committed Feb 1, 2019
1 parent 139209a commit 8ed2b91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tribler/Core/APIImplementation/LaunchManyCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from Tribler.pyipv8.ipv8.keyvault.private.m2crypto import M2CryptoSK
from Tribler.pyipv8.ipv8.peer import Peer
from Tribler.pyipv8.ipv8.peerdiscovery.churn import RandomChurn
from Tribler.pyipv8.ipv8.peerdiscovery.community import DiscoveryCommunity
from Tribler.pyipv8.ipv8.peerdiscovery.community import DiscoveryCommunity, PeriodicSimilarity
from Tribler.pyipv8.ipv8.peerdiscovery.discovery import EdgeWalk, RandomWalk
from Tribler.pyipv8.ipv8.taskmanager import TaskManager
from Tribler.pyipv8.ipv8.util import blockingCallFromThread, blocking_call_on_reactor_thread
Expand Down Expand Up @@ -243,6 +243,7 @@ def load_ipv8_overlays(self):
discovery_community.resolve_dns_bootstrap_addresses()
self.ipv8.overlays.append(discovery_community)
self.ipv8.strategies.append((RandomChurn(discovery_community), -1))
self.ipv8.strategies.append((PeriodicSimilarity(discovery_community), -1))

if not self.session.config.get_dispersy_enabled():
self.ipv8.strategies.append((RandomWalk(discovery_community), 20))
Expand Down

0 comments on commit 8ed2b91

Please sign in to comment.