Skip to main content

Module bootstrap_coordinator

Module bootstrap_coordinator 

Source
Expand description

Bootstrap coordinator for systematic peer discovery

This module provides production-grade peer discovery beyond the initial bootstrap list, featuring:

  • Priority-based bootstrap peer selection
  • Exponential backoff on failures with configurable caps
  • Random walk and closest-peer query coordination
  • Discovery record tracking with ping-based ranking
  • Atomic statistics for lock-free monitoring

Structsยง

BootstrapCoordinator
Coordinates systematic peer discovery for production IPFRS nodes.
BootstrapPeer
A single bootstrap peer with priority, backoff state, and attempt history.
BootstrapStats
Atomic counters for bootstrap coordinator activity.
BootstrapStatsSnapshot
Owned, copyable snapshot of BootstrapStats.
DiscoveryRecord
A record for a peer discovered through any mechanism.