Expand description
Peer churn tracking and stability scoring for DHT and routing decisions.
This module provides PeerChurnManager which tracks peer join/leave events,
computes churn rate over sliding windows, and maintains stability scores to
inform DHT and routing decisions.
Structs§
- Churn
Manager Config - Configuration for the
PeerChurnManager. - Churn
Stats - Aggregated statistics for the churn manager at a given tick.
- Churn
Window - A sliding time window used to compute churn rate.
- Peer
Churn Manager - Manages peer join/leave events, computes churn rate over sliding windows, and provides stability scores for DHT and routing decisions.
- Peer
Lifetime - Records the lifetime of a single peer in the network.
Enums§
- Churn
Event - An event representing a peer joining or leaving the network.