async fn validate_version_msg(
msg: &PeerNetMsg,
config_version: &Version,
protocols: &HashMap<ProtocolID, ProtocolMeta>,
verified_peer_id: Option<&PeerID>,
) -> Result<(PeerID, Vec<ProtocolID>)>Expand description
Validates the given version msg. Returns the remote peer ID and the intersection of compatible protocols.