sc_network::config

Function parse_addr

Source
pub fn parse_addr(addr: Multiaddr) -> Result<(PeerId, Multiaddr), ParseErr>
Expand description

Splits a Multiaddress into a Multiaddress and PeerId.