-
Notifications
You must be signed in to change notification settings - Fork 237
feat: async force inclusion fetching #2842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: julien/fi
Are you sure you want to change the base?
Conversation
|
The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).
|
|
Claude finished @julienrbrt's task —— View job Comprehensive Code Review ✅I've completed a thorough review of the async force inclusion fetching implementation. Here are my findings across all focus areas: 1. Code Quality & ArchitectureStrengths
Issues & ConcernsCritical: Potential deadlock in CAS loops
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## julien/fi #2842 +/- ##
============================================
Coverage ? 64.77%
============================================
Files ? 85
Lines ? 7838
Branches ? 0
============================================
Hits ? 5077
Misses ? 2199
Partials ? 562
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:
|
| } | ||
|
|
||
| // calculateAdaptiveEpochWindow calculates the epoch lag window based on average fetch time | ||
| func (r *daRetriever) calculateAdaptiveEpochWindow() uint64 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this func and what it calls is AI. i think it makes sense.
Merges forced inclusion implementation from julien/fi branch while preserving existing features from julien/async-fi. Key changes: - Refactored forced inclusion into clean block/internal/da package - Added ForcedInclusionRetriever and DAClient abstractions - Updated based sequencer to use new ForcedInclusionRetriever interface - Updated single sequencer with forced inclusion support - Added size validation for forced inclusion transactions - Removed async background fetcher in favor of simpler synchronous approach - Updated tests to match new behavior - Kept atomic.Pointer queue in based sequencer for thread safety The merge preserves forced inclusion functionality while adopting the cleaner architecture from julien/fi.
Follow-up of #2797. Blocked on #2797 being merged.
Implements part of #2797 (comment)