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

Method rlpx_socket

crates/execution/node/src/node.rs:1340–1342  ·  view source on GitHub ↗

Returns the `RLPx` socket configured by reth network arguments.

(args: &RethNetworkArgs)

Source from the content-addressed store, hash-verified

1338
1339 /// Returns the `RLPx` socket configured by reth network arguments.
1340 pub fn rlpx_socket(args: &RethNetworkArgs) -> SocketAddr {
1341 (args.addr, args.port).into()
1342 }
1343
1344 /// Encodes the NAT-discovered external IP as an ENR key-value pair.
1345 pub fn enr_ip_kv_pair(external_addr: Option<IpAddr>) -> Option<(&'static [u8], Bytes)> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected