Repository navigation
fix: get the blobs by block root when the slot gives no blobs - #156
Merged
Merged
Conversation
Some beacon nodes give an empty list of blobs for a slot, but give the blobs for the block root of the same block. Lighthouse v8.3.0-rc.0 on Sepolia does this for the first 8192 slots after the Gloas fork (slots 11296768 to 11304959). The indexer asked for the blobs only by slot, so it stopped with "Blobs not found" at slot 11296769. Now, if no route gives blobs for the slot, the indexer tries the same routes with the block root of the block that has the payload. The request by slot stays first, because some nodes cannot rebuild old blobs by block root. compute_blob_proofs still verifies the blobs against the commitments of the block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A beacon node that is not a supernode can give an error when it cannot rebuild the blobs by block root (#146). The fetch stopped at this error, so a new head that gave no blobs by slot for a short time failed the slot. Before the request by block root was added, the indexer waited and tried again. Now, an error on a request by block root is logged and counts as no blobs. The fetch waits and tries the slot again. An error on a request by slot still stops the fetch. The test for blobs by block root that do not agree with the commitments now makes sure that the indexer gets the blobs by block root and that the error is from the verification. A new test makes sure that an error by block root makes the fetch wait and try again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The log for a route switch now also records the block ID that gave the blobs. - The doc comments give the Lighthouse version on Sepolia as a dated note, as the other node notes in the module do. - The test that tries all routes by slot and by block root has a name that tells this. - A helper, expect_blobs_request, sets the mocks for one route and one block ID. The block root tests use it, with exact call counts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Problem
The Sepolia indexer stops at slot 11296769:
The Sepolia beacon node (
Lighthouse/v8.3.0-rc.0) gives an empty list from/eth/v1/beacon/blobs/{slot}for the first 8192 slots after the Gloas fork (slots 11296768 to 11304959). For the block root of the same block, it gives the blobs./blob_sidecarsgives 404 on this node, so the route fallback from #154 does not help.blobs/11296768[]blobs/0x5f5f97…(root of slot 11296768)blobs/11296769[]blobs/0x00f067…(root of slot 11296769)blobs/11304960and laterChange
fetch_raw_blobsnow also gets the block root of the block that has the payload. For a Gloas block, this is the root of the parent.compute_blob_proofsstill verifies the blobs against the commitments of the block.Tests
cargo test: 60 passed.Blobs not foundat slot 11296769. After the fix: all blocks with blobs are indexed, with the blobs by block root. Slots 11304961–11304964 still get the blobs by slot.🤖 Generated with Claude Code