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

Merge request pipeline #38974 passed

Merge request pipeline passed for b3eb7494

Approved by

Merged by Hugo TrentesauxHugo Trentesaux 4 months ago (Nov 29, 2024 4:10pm UTC)

Merge details

  • Changes merged into master with ebc4730c (commits were squashed).
  • Deleted the source branch.

Pipeline #38975 failed

Pipeline failed for ebc4730c on master

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