-
Notifications
You must be signed in to change notification settings - Fork 240
feat: DA hints in p2p #2891
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: main
Are you sure you want to change the base?
feat: DA hints in p2p #2891
Conversation
|
Claude finished @alpe's task —— View job Comprehensive Code ReviewI've completed a thorough review of PR #2891 (feat: DA hints in p2p). Here are my findings organized by category: 1. Architecture & Design
|
|
The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2891 +/- ##
==========================================
+ Coverage 64.76% 65.09% +0.33%
==========================================
Files 81 83 +2
Lines 7350 7492 +142
==========================================
+ Hits 4760 4877 +117
- Misses 2049 2068 +19
- Partials 541 547 +6
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:
|
🚧 WIP - early version
Overview
Resolves #2609
The basic idea is to store an additional DAHightHint field within the p2p store.
As SignedHeader and Data are used in other places, too. I added an an
DAHeightHintContainertype to wrap the tuple for the store only.The DAHeight Hint is added by the da_submitter and read in the syncer to fetch the missing DA header/data for the most recent block as required.
There are still some todo with the tests and types as well as smarter block fetching to not pull duplicates or hammer the DA API.