3.0.ipv8.peerdiscovery.discovery
Attributes
Classes
Module Contents
- 3.0.ipv8.peerdiscovery.discovery._OT
- class 3.0.ipv8.peerdiscovery.discovery.DiscoveryStrategy(overlay: _OT)
Bases:
Generic[_OT]Strategy for discovering peers in a network.
- overlay: _OT
- walk_lock
- class 3.0.ipv8.peerdiscovery.discovery.RandomWalk(overlay: 3.0.ipv8.types.Overlay, timeout: float = 3.0, window_size: int = 5, reset_chance: int = 50, target_interval: int = 0)
Bases:
DiscoveryStrategy[3.0.ipv8.types.Overlay]Walk randomly through the network.
- node_timeout
- window_size
- reset_chance
- target_interval
- class 3.0.ipv8.peerdiscovery.discovery.EdgeWalk(overlay: 3.0.ipv8.types.Overlay, edge_length: int = 4, neighborhood_size: int = 6, edge_timeout: float = 3.0)
Bases:
DiscoveryStrategy[3.0.ipv8.types.Overlay]Walk through the network by using edges.
This will perform a depth-first search in the network starting from your direct neighborhood. When a certain depth is reached, we teleport home and start again from our neighborhood.
- edge_length
- neighborhood_size
- edge_timeout