Skip to main content

Module lookup

Module lookup 

Source

Structs§

LookupEndpoints
Endpoints the lookup service advertises and binds to.
LookupService

Constants§

MAX_ADDRS_PER_PEER
Maximum data-plane addresses a peer may advertise about itself. Legitimate peers only need one per transport (tcp/tls/quic).
MAX_DISCOVERY_ADDRS_PER_PEER
Maximum discovery addresses a peer may advertise about itself. Legitimate peers only need lookup + refresh.
MAX_PEERS_IN_PEERSMSG
Maximum number of peers that can be returned in a PeersMsg.

Functions§

validate_peer_msg 🔒
Reject PeerMsgs that advertise more addresses than a legitimate peer would. Caps memory blow-up from malicious or buggy peers.

Type Aliases§

KadConnRef 🔒
Framed lookup-plane connection.