Expand description
Wrapper around [discv5::Discv5
].
Re-exports§
pub use config::BootNode;
pub use config::Config;
pub use config::ConfigBuilder;
pub use config::DEFAULT_COUNT_BOOTSTRAP_LOOKUPS;
pub use config::DEFAULT_DISCOVERY_V5_ADDR;
pub use config::DEFAULT_DISCOVERY_V5_ADDR_IPV6;
pub use config::DEFAULT_DISCOVERY_V5_LISTEN_CONFIG;
pub use config::DEFAULT_DISCOVERY_V5_PORT;
pub use config::DEFAULT_SECONDS_BOOTSTRAP_LOOKUP_INTERVAL;
pub use config::DEFAULT_SECONDS_LOOKUP_INTERVAL;
pub use enr::enr_to_discv4_id;
pub use error::Error;
pub use filter::FilterOutcome;
pub use filter::MustNotIncludeKeys;
pub use network_stack_id::NetworkStackId;
pub use discv5;
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 theIpMode
set.
Constants§
- Default lowest kbucket index to attempt filling, in periodic look up query to populate kbuckets.
- Max kbucket index is 255.
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.