Skip to main content

Module address_prober

Module address_prober 

Source
Expand description

The adddress prober periodically checks addresses of trusted peers for connectability, reported via Prometheus metrics.

  • P2P: anemo::Network::probe_address, which verifies reachability + the peer’s PeerId without joining the peer set or disturbing any existing connection.
  • Consensus: a throwaway tonic+rustls connect() replicating the real consensus client TLS (expected network key, consensus_epoch_{epoch} server name, our network key as the client cert). Only a current committee member can complete this handshake.

Structs§

AddressProberMetrics
Builder
Handle
Handle to the address prober. Dropping all clones closes the mailbox and the event loop shuts down. Holds the metrics so tests can read them.
ProbeAddressReport
Latest probe result for a single concrete address.
ProbeGroupReport
Latest probe outcome for one (peer, endpoint_type, source) group.
ProbeReport
A point-in-time snapshot of the prober’s latest results, served by the admin endpoint.
ProberEpochContext
Epoch-scoped inputs to the prober.
UnstartedAddressProber
A built-but-not-started prober: holds the runtime-independent state until start injects the network/discovery/keypair and spawns the event loop.