reth_discv5::config

Function discv5_sockets_wrt_rlpx_addr

Source
pub fn discv5_sockets_wrt_rlpx_addr(
    rlpx_addr: IpAddr,
    discv5_addr_ipv4: Option<Ipv4Addr>,
    discv5_port_ipv4: u16,
    discv5_addr_ipv6: Option<Ipv6Addr>,
    discv5_port_ipv6: u16,
) -> (Option<SocketAddrV4>, Option<SocketAddrV6>)
Expand description

Returns the sockets that can be used for discv5 with respect to the RLPx address. ENR specs only acknowledge one address per IP version.