Expand description
Wrapper around [discv5::Config
].
Structs§
- Config
- Config used to bootstrap [
discv5::Discv5
]. - Config
Builder - Builds a
Config
.
Enums§
- Boot
Node - A boot node can be added either as a string in either ‘enode’ URL scheme or serialized from
Enr
type.
Constants§
- DEFAULT_
COUNT_ BOOTSTRAP_ LOOKUPS - Default number of times to do pulse lookup queries, at bootstrap (pulse intervals, defaulting to 5 seconds).
- DEFAULT_
DISCOVERY_ V5_ ADDR - The default address for discv5 via UDP is IPv4.
- DEFAULT_
DISCOVERY_ V5_ ADDR_ IPV6 - The default IPv6 address for discv5 via UDP.
- DEFAULT_
DISCOVERY_ V5_ LISTEN_ CONFIG - The default [
discv5::ListenConfig
]. - DEFAULT_
DISCOVERY_ V5_ PORT - The default port for discv5 via UDP.
- DEFAULT_
SECONDS_ BOOTSTRAP_ LOOKUP_ INTERVAL - Default duration of the pulse lookup interval at bootstrap.
- DEFAULT_
SECONDS_ LOOKUP_ INTERVAL - Default interval in seconds at which to run a lookup up query.
Functions§
- amend_
listen_ config_ wrt_ rlpx - Returns the amended [
discv5::ListenConfig
] based on theRLPx
IP address. The ENR is limited to one IP address per IP version (atm, may become spec’d how to advertise different addresses). TheRLPx
address overwrites the discv5 address w.r.t. IP version. - discv5_
sockets_ wrt_ rlpx_ addr - Returns the sockets that can be used for discv5 with respect to the
RLPx
address. ENR specs only acknowledge one address per IP version. - ipv4
- Returns the IPv4 discovery socket if one is configured.
- ipv6
- Returns the IPv6 discovery socket if one is configured.