Crate reth_discv5

source ·
Expand description

Wrapper around [discv5::Discv5].

Re-exports§

Modules§

  • Wrapper around [discv5::Config].
  • Interface between node identification on protocol version 5 and 4. Specifically, between types [discv5::enr::NodeId] and [PeerId].
  • Errors interfacing with [discv5::Discv5].
  • Predicates to constraint peer lookups.
  • Tracks peer discovery for Discv5.
  • Keys of ENR ForkId kv-pair. Identifies which network stack a node belongs to.

Structs§

  • Result of successfully processing a peer discovered by [discv5::Discv5].
  • Transparent wrapper around [discv5::Discv5].

Enums§

  • Sets the socket type to be established and also determines the type of ENRs that we will store in our routing table. We store ENR’s that have a get_contractable_addr() based on the IpMode set.

Constants§

Functions§

  • Bootstraps underlying [discv5::Discv5] node with configured peers.
  • Builds the local ENR with the supplied key.
  • Gets the next lookup target, based on which bucket is currently being targeted.
  • Runs a [discv5::Discv5] lookup query.
  • Backgrounds regular look up queries, in order to keep kbuckets populated.