reth_discv5

Module config

Source
Expand description

Wrapper around [discv5::Config].

Structs§

Enums§

  • A boot node can be added either as a string in either ‘enode’ URL scheme or serialized from Enr type.

Constants§

Functions§

  • Returns the amended [discv5::ListenConfig] based on the RLPx IP address. The ENR is limited to one IP address per IP version (atm, may become spec’d how to advertise different addresses). The RLPx address overwrites the discv5 address w.r.t. IP version.
  • Returns the sockets that can be used for discv5 with respect to the RLPx address. ENR specs only acknowledge one address per IP version.
  • Returns the IPv4 discovery socket if one is configured.
  • Returns the IPv6 discovery socket if one is configured.