feat: add automatic DA retriever walkback when P2P stalls and DA blocks too far ahead#3262
feat: add automatic DA retriever walkback when P2P stalls and DA blocks too far ahead#3262julienrbrt wants to merge 12 commits into
Conversation
📝 WalkthroughWalkthroughThis PR implements automatic DA retriever walkback when P2P synchronization stalls. It introduces a callback mechanism that allows the Syncer to request DA height rewinds through the follower and subscriber layers when P2P is stuck and DA blocks have advanced too far ahead, enabling re-fetching of blocks at earlier heights once P2P recovers. ChangesDA Retriever Walkback on P2P Stall
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).
|
|
Claude finished @julienrbrt's task in 3m 12s —— View job Code Review
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3262 +/- ##
==========================================
+ Coverage 60.87% 60.89% +0.01%
==========================================
Files 127 127
Lines 13762 13815 +53
==========================================
+ Hits 8378 8412 +34
- Misses 4473 4487 +14
- Partials 911 916 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@CHANGELOG.md`:
- Line 14: Fix the grammatical error in the changelog entry that reads "Add
automatic DA retriever walkback when P2P stalls and DA blocks too far ahead" by
inserting the missing verb—e.g., change it to "Add automatic DA retriever
walkback when P2P stalls and DA blocks are too far ahead" (or another equivalent
phrasing) so the sentence is grammatically correct; update the entry text
exactly where that line appears.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 52376b7e-4f8a-4af0-b287-a0669edfe473
📒 Files selected for processing (8)
CHANGELOG.mdblock/internal/da/async_block_retriever.goblock/internal/da/subscriber.goblock/internal/da/subscriber_test.goblock/internal/syncing/da_follower.goblock/internal/syncing/da_follower_test.goblock/internal/syncing/syncer.goblock/internal/syncing/syncer_test.go
|
|
||
| ### Changes | ||
|
|
||
| - Add automatic DA retriever walkback when P2P stalls and DA blocks too far ahead [#3262](https://github.com/evstack/ev-node/pull/3262) |
There was a problem hiding this comment.
Fix grammatical issue in the changelog entry.
The phrase "DA blocks too far ahead" is missing a verb.
📝 Proposed fix
-- Add automatic DA retriever walkback when P2P stalls and DA blocks too far ahead [`#3262`](https://github.com/evstack/ev-node/pull/3262)
+- Add automatic DA retriever walkback when P2P stalls and DA blocks are too far ahead [`#3262`](https://github.com/evstack/ev-node/pull/3262)Alternative phrasing:
-- Add automatic DA retriever walkback when P2P stalls and DA blocks too far ahead [`#3262`](https://github.com/evstack/ev-node/pull/3262)
+- Add automatic DA retriever walkback when P2P stalls and DA blocks get too far ahead [`#3262`](https://github.com/evstack/ev-node/pull/3262)📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| - Add automatic DA retriever walkback when P2P stalls and DA blocks too far ahead [#3262](https://github.com/evstack/ev-node/pull/3262) | |
| - Add automatic DA retriever walkback when P2P stalls and DA blocks are too far ahead [`#3262`](https://github.com/evstack/ev-node/pull/3262) |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@CHANGELOG.md` at line 14, Fix the grammatical error in the changelog entry
that reads "Add automatic DA retriever walkback when P2P stalls and DA blocks
too far ahead" by inserting the missing verb—e.g., change it to "Add automatic
DA retriever walkback when P2P stalls and DA blocks are too far ahead" (or
another equivalent phrasing) so the sentence is grammatically correct; update
the entry text exactly where that line appears.

Overview
Add automatic DA retriever walkback when P2P stalls and DA blocks too far ahead
Early WIP, i do not like what the LLM has produced.
Summary by CodeRabbit
New Features
Chores