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

Method advertised_node

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

Builds the advertised local node metadata.

(&self, signing_key: k256::ecdsa::SigningKey)

Source from the content-addressed store, hash-verified

311
312 /// Builds the advertised local node metadata.
313 pub fn advertised_node(&self, signing_key: k256::ecdsa::SigningKey) -> LocalNode {
314 LocalNode::new(
315 signing_key,
316 self.advertised_ip(),
317 self.advertised_tcp_port(),
318 self.advertised_udp_port(),
319 )
320 }
321
322 /// Returns the advertised IP address.
323 pub fn advertised_ip(&self) -> IpAddr {

Callers 2

discovery_driverMethod · 0.80
local_enrMethod · 0.80

Calls 4

advertised_ipMethod · 0.80
advertised_tcp_portMethod · 0.80
advertised_udp_portMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected