Skip to content

fix: get the blobs by block root when the slot gives no blobs - #156

Merged
PJColombo merged 3 commits into
masterfrom
fix/blobs-by-block-root-fallback
Nov 9, 2026
Merged

PJColombo merged 3 commits into
masterfrom
fix/blobs-by-block-root-fallback

Conversation

@PJColombo

@PJColombo PJColombo commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Problem

The Sepolia indexer stops at slot 11296769:

Failed to index block with root '0x00f06776…fdd0' at slot 11296769: Blobs not found

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_sidecars gives 404 on this node, so the route fallback from #154 does not help.

Request Result
blobs/11296768 []
blobs/0x5f5f97… (root of slot 11296768) 4 blobs
blobs/11296769 []
blobs/0x00f067… (root of slot 11296769) 8 blobs
blobs/11304960 and later blobs by slot and by root

Change

  • fetch_raw_blobs now also gets the block root of the block that has the payload. For a Gloas block, this is the root of the parent.
  • If no route gives blobs for the slot, the indexer tries the same routes with the block root.
  • The request by slot stays first, because some nodes cannot rebuild old blobs by block root (fix: fetch blobs by slot instead of block root #146).
  • An error on a request by block root counts as no blobs. A Lighthouse node that is not a supernode gives a 400 ("Insufficient data columns to reconstruct blobs") for such a request. This error does not stop the fetch.
  • If all requests give no blobs, the indexer waits and tries again, as before.
  • compute_blob_proofs still verifies the blobs against the commitments of the block.

Tests

  • New: Gloas blobs that the slot does not give come from the parent block root, with no retry delay.
  • New: blobs by block root that do not agree with the commitments are not indexed.
  • New: an error on the requests by block root makes the fetch wait and try again, and the blobs then come by slot.
  • Updated: when no blobs come by slot or by block root, the indexer tries all four requests on each attempt.
  • cargo test: 60 passed.
  • Manual test: a local indexer and API on Sepolia slots 11296768–11296780. Before the fix: Blobs not found at 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

PJColombo and others added 3 commits November 9, 2026 12:29
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>
@PJColombo
PJColombo merged commit dba36e4 into master Nov 9, 2026
@PJColombo
PJColombo deleted the fix/blobs-by-block-root-fallback branch November 9, 2026 17:26
@github-actions github-actions Bot mentioned this pull request Nov 9, 2026
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.

1 participant