Function sc_network_common::config::parse_addr
source · pub fn parse_addr(addr: Multiaddr) -> Result<(PeerId, Multiaddr), ParseErr>
Expand description
Splits a Multiaddress into a Multiaddress and PeerId.
pub fn parse_addr(addr: Multiaddr) -> Result<(PeerId, Multiaddr), ParseErr>
Splits a Multiaddress into a Multiaddress and PeerId.