Skip to main content

build_netinfo_cell

Function build_netinfo_cell 

Source
pub(crate) fn build_netinfo_cell<S>(
    peer_ip: Option<IpAddr>,
    my_addrs: Vec<IpAddr>,
    sleep_prov: &S,
) -> Result<Netinfo>
Expand description

Build a msg::Netinfo cell from the given peer IPs and our advertised addresses.

Both relay initiator and responder handshake use this.