chore (supervisor/storage): optimize and rename#2628
chore (supervisor/storage): optimize and rename#2628dhyaniarun1993 merged 5 commits intoop-rs:mainfrom
Conversation
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the latest_derived_block_at_source method in the DerivationProvider to optimize its implementation and improve naming clarity. The change replaces a loop-based traversal with a more efficient cursor-based approach.
Key changes:
- Renames method from
latest_derived_block_at_sourcetolatest_derived_ref_pair_at_sourcefor better clarity - Optimizes the traversal algorithm using database cursors instead of manual loop iteration
- Updates all call sites to use the new method name
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| crates/supervisor/storage/src/providers/derivation_provider.rs | Implements optimized cursor-based traversal and renames the method |
| crates/supervisor/storage/src/chaindb.rs | Updates method calls to use the new method name |
emhane
left a comment
There was a problem hiding this comment.
nice! pending @varun-doshi or @sadiq1971
Fixes op-rs/kona#2338 --------- Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com>
Fixes #2338 --------- Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com>
Fixes #2338