Function distance_oracle::compute_distance_evaluation

source ยท
pub async fn compute_distance_evaluation(
    client: &Client,
    settings: &Settings,
) -> Option<(Vec<Perbill>, u32, PathBuf)>
Expand description

Evaluates distance for the current period and prepares results for storage.

This function performs the following steps:

  1. Prepares the evaluation context using prepare_evaluation_context. If the context is not ready (e.g., no pending evaluations, or results already exist), it returns None.
  2. Evaluates distances for all identities in the evaluation pool.
  3. Returns the evaluation results, the current period index, and the path to store the results.