Expand description
Wrapper around [discv5::Config
].
Structs§
- Config used to bootstrap [
discv5::Discv5
]. - Builds a
Config
.
Enums§
- A boot node can be added either as a string in either ‘enode’ URL scheme or serialized from
Enr
type.
Constants§
- Default number of times to do pulse lookup queries, at bootstrap (pulse intervals, defaulting to 5 seconds).
- The default address for discv5 via UDP is IPv4.
- The default IPv6 address for discv5 via UDP.
- The default [
discv5::ListenConfig
]. - The default port for discv5 via UDP.
- Default duration of the pulse lookup interval at bootstrap.
- Default interval in seconds at which to run a lookup up query.
Functions§
- 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. - 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.