subspace_networking::utils

Function strip_peer_id

source
pub fn strip_peer_id(addresses: Vec<Multiaddr>) -> Vec<PeerAddress>
Expand description

Helper function. Converts multiaddresses to a tuple with peer ID removing the peer Id suffix. It logs incorrect multiaddresses.