Skip to content

feat(blobber): Use new /blobs lighthouse endpoint to fetch blobs from CL - #58

Merged
Evalir merged 8 commits into
mainfrom
evalir/new-cl-api
Jan 13, 2026
Merged

feat(blobber): Use new /blobs lighthouse endpoint to fetch blobs from CL#58
Evalir merged 8 commits into
mainfrom
evalir/new-cl-api

Conversation

@Evalir

@Evalir Evalir commented Dec 30, 2025

Copy link
Copy Markdown
Member

This massively simplifies CL blob fetching code. Instead of having to match blobs with versioned hashes with potential problems, we can just ask for exactly the blobs we want using the slot and versioned hashes. It reduces the entire CL fetching code to an API call.

Closes ENG-1667

@Evalir
Evalir requested a review from a team as a code owner December 30, 2025 19:00

Evalir commented Dec 30, 2025

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment thread crates/blobber/src/blobs/fetch.rs Outdated
@Evalir
Evalir requested a review from prestwich January 9, 2026 06:20
Comment thread crates/blobber/src/blobs/fetch.rs Outdated
@Evalir
Evalir requested a review from prestwich January 13, 2026 13:13

@prestwich prestwich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was not requesting an error type. I was requesting a clear explanation of the API and why it was designed that way. I think that "give me whatever subset of X,Y,Z you have" is a useful API. I also think that "give me exactly X,Y,Z, or nothing" is a useful function. What I'm looking for 0 panics, and for the rustdoc to tell me exactly how to achieve both of those things

@Evalir
Evalir requested a review from prestwich January 13, 2026 13:54
Comment thread crates/blobber/src/blobs/fetch.rs Outdated

@prestwich prestwich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DRY the two functions

document that we assume the CL returns correct blobs and not unrelated data

…om CL

This massively simplifies CL blob fetching code. Instead of having to match blobs with versioned hashes with potential problems, we can just ask for exactly the blobs we want using the slot and versioned hashes. It reduces the entire CL fetching code to an API call.

Closes ENG-1667
@Evalir
Evalir force-pushed the evalir/new-cl-api branch from 1abc53a to ab28dcd Compare January 13, 2026 15:15
@Evalir
Evalir requested a review from prestwich January 13, 2026 15:15
@Evalir
Evalir enabled auto-merge (squash) January 13, 2026 15:30
@Evalir
Evalir merged commit 94a731a into main Jan 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants