-
Notifications
You must be signed in to change notification settings - Fork 215
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
fix(blobs): cleanup logging and node-api handling of blobs #2486
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2486 +/- ##
==========================================
- Coverage 32.31% 32.30% -0.01%
==========================================
Files 350 350
Lines 15672 15674 +2
Branches 20 20
==========================================
Hits 5064 5064
- Misses 10245 10247 +2
Partials 363 363
|
// If the requested slot is 0 (head, finalized, justified), use the current slot. | ||
if slot == 0 { | ||
slot = math.Slot(currentSlot) | ||
} |
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 is the main fix of this PR. we resolve "head", "finalized" and "justified" blockIDs to slot 0, which hits the node query context for the latest height.
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.
lgtm!
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.
nits on using getter for slot. Otherwise LGTM.
Not a big deal for the getter nits. I've been wanting to clean up data handling and exported values around the codebase as a whole for awhile now. For now, I think we should be diligently using getters where expected.
Co-authored-by: Shota Ehrlich <[email protected]> Signed-off-by: Cal Bera <[email protected]>
Co-authored-by: Shota Ehrlich <[email protected]> Signed-off-by: Cal Bera <[email protected]>
LGTM |
Simple cleanup for blobs endpoint in beacon api