Function reth_discv5::config::amend_listen_config_wrt_rlpx
source · pub fn amend_listen_config_wrt_rlpx(
listen_config: &ListenConfig,
rlpx_addr: IpAddr,
) -> ListenConfig
Expand description
Returns the amended [discv5::ListenConfig
] based on the RLPx
IP address. The ENR is limited
to one IP address per IP version (atm, may become spec’d how to advertise different addresses).
The RLPx
address overwrites the discv5 address w.r.t. IP version.