latest.ipv8.dht.churn

Module Contents

Classes

PingChurn

Strategy to maintain the data structures of the DHT community.

class latest.ipv8.dht.churn.PingChurn(overlay: latest.ipv8.types.DHTCommunity, ping_interval: float = 25.0)

Bases: latest.ipv8.peerdiscovery.discovery.DiscoveryStrategy

Strategy to maintain the data structures of the DHT community.

take_step() None

Every tick (half-second by default), performs maintainence.

If routing tables are set up:
  • Remove all “bad” nodes from the routing table.

  • Remove all nodes that are not part of any routing table.

  • Inspect the routing tables to register Network services for its peers.

  • Send pings to peers at our configured ping_interval.