Repository navigation
archive API: query blob info by CL version - #524
Merged
Merged
Conversation
- decode /eth/v2/beacon/blocks/{id} per consensus version: deneb, electra
and fulu through the execution payload, gloas through the signed
execution payload bid. Both paths yield the execution block hash and the
KZG commitments in block order; the execution block number is dropped
because a gloas bid does not carry one.
- find PutBlob events with an eth_getLogs blockHash query instead of a
fromBlock/toBlock range.
- classify failures explicitly: beacon 404 and a blob missing from local
storage are 404, upstream beacon errors and undecodable block versions
are 502, and an execution block L1 has not seen yet is a retryable 503.
…eout blob_kzg_commitments is required by the beacon API schema: a block without blobs serves an explicit empty array. A missing or null field is now an upstream error instead of being read as 'no blobs', which used to surface as a misleading 404 even when the blob is stored locally. Revert the BeaconClient HTTP client change: DownloadBlobs is also used by the regular node downloader, and a fixed 30s client timeout would fail downloads that previously completed later. fetchBeaconBlock already bounds its own request with a context timeout.
syntrust
marked this pull request as ready for review
October 12, 2026 09:49
qzhodl
reviewed
Oct 28, 2026
qzhodl
approved these changes
Oct 28, 2026
iteyelmp
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Beacon API response structure changed as ePBS introduced by the Gloas fork.
A beacon block is now decoded by its consensus version
Both yield the execution block number/hash plus the blob commitments in block order.
What
Test
go test ./... -tags cigreen;go build -v ./cmd/...clean;golangci-lint run --config=./golangci.ymlclean on the touched packages.