Skip to main content

fix

Function fix 

Source
pub(super) async fn fix(services: &Services) -> Result
Expand description

Runs the one-time chain cache clear, then the injectivity scan, heal, and repair behind MARKER.

The clear takes CLEAR_MARKER and runs ahead of the early return, so a database that already completed the repair still discards its chains. The stamp follows the repair’s own verdict: only a settled repair writes it. A heal rescans rather than repairing, because the orphan and parent counts a refusal turns on are taken against bitmaps the heal changes.