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:
- Prepares the evaluation context using
prepare_evaluation_context
. If the context is not ready (e.g., no pending evaluations, or results already exist), it returnsNone
. - Evaluates distances for all identities in the evaluation pool.
- Returns the evaluation results, the current period index, and the path to store the results.