bor icon indicating copy to clipboard operation
bor copied to clipboard

pruner: covering reorg scenarios

Open lucca30 opened this issue 1 month ago • 1 comments

Description

We added two mechanisms to make the pruner handle online and offline reorgs correctly: it now persists the last seen canonical head and compares it to the current head on each run, allowing it to detect and clean up reverted data even after restarts; and it includes a cursor-clamp and rollback logic so both the cursor and pruned ranges remain consistent whenever a reorg is detected.

Changes

  • [ ] Bugfix (non-breaking change that solves an issue)
  • [ ] Hotfix (change that solves an urgent issue, and requires immediate attention)
  • [x] New feature (non-breaking change that adds functionality)
  • [ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • [ ] Changes only for a subset of nodes

Testing

  • [x] I have added unit tests
  • [ ] I have added tests to CI
  • [ ] I have tested this code manually on local environment
  • [ ] I have tested this code manually on remote devnet using express-cli
  • [ ] I have tested this code manually on amoy
  • [ ] I have created new e2e tests into express-cli

lucca30 avatar Dec 02 '25 18:12 lucca30

This PR is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Dec 24 '25 00:12 github-actions[bot]