Skip to content
Snippets Groups Projects

Fix #262 distance oracle pool index

Merged Benjamin Gallois requested to merge fix-262 into master
  • Fixed #262 (closed): Switched to continuous indexing for naming distance evaluation files to prevent old files from being picked up by the inherent, avoiding unexpected behavior.
  • Added crate-level documentation to provide an overview of the distance oracle's purpose and usage.
  • Added a landing page for documentation duniter/index.html.
  • Added a prefix check to prevent mismatches between the oracle and runtime versions, avoiding the Smith being penalized for a negligence error.
  • Added log for distance-oracle started from the main binary.
  • Refactored run and run_and_save oracle main functions:
    • Split into three thematic functions for better modularity:
      1. Checks if there is work to do and ensures files can be saved successfully.
      2. Handles the distance evaluation logic.
      3. Saves the computed distance to a file and cleans up outdated files.
Edited by Benjamin Gallois

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading