MCPcopy Create free account
hub / github.com/base/base / bootnodes

Method bootnodes

crates/consensus/cli/src/bootnode.rs:364–373  ·  view source on GitHub ↗

Parses configured bootnodes.

(&self)

Source from the content-addressed store, hash-verified

362
363 /// Parses configured bootnodes.
364 pub fn bootnodes(&self) -> eyre::Result<BootNodes> {
365 self.bootnodes
366 .iter()
367 .map(|bootnode| {
368 BootNode::parse_bootnode(bootnode)
369 .map_err(|e| eyre::eyre!("Failed to parse bootnode '{bootnode}': {e}"))
370 })
371 .collect::<eyre::Result<Vec<BootNode>>>()
372 .map(Into::into)
373 }
374}
375
376/// Resolves an IP address or DNS hostname.

Callers 2

discovery_driverMethod · 0.45
invalid_bootnode_errorsFunction · 0.45

Calls 1

iterMethod · 0.45

Tested by 1

invalid_bootnode_errorsFunction · 0.36