Skip to content

fix: fall back to blob_sidecars when the node has no /blobs route - #154

Merged
PabloCastellano merged 1 commit into
masterfrom
fix/blob-route-fallback
Oct 29, 2026
Merged

PabloCastellano merged 1 commit into
masterfrom
fix/blob-route-fallback

Conversation

@PabloCastellano

@PabloCastellano PabloCastellano commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

v0.7.0 reads the raw blobs only from /eth/v1/beacon/blobs. Which routes a beacon node serves depends on the node and its version, not on the network. Measured on the RPC endpoints (2026-10-24):

Network Node /blobs /blob_sidecars
gnosis Lighthouse v8.2.1 404 yes
sepolia Lighthouse v8.3.0-rc.0 yes 404
mainnet Lighthouse v8.2.3 yes yes
hoodi Lighthouse v8.3.2 yes yes

With v0.7.0 the gnosis indexer cannot index: Blobs not found, 420 restarts, 37 h behind.

On a 404 (or an empty answer) the processor now tries the other route at once, and remembers, process wide, the one that worked, so the next slot asks it first. Only when both have nothing does it wait and retry (same 5 attempts as before). Errors other than 404 (400 from PeerDAS, 5xx) still propagate. Commitments still come from the block and the proofs are computed and verified as before; the sidecars only contribute their blobs, sorted by index.

Tests: 7 new (57 in total) for the route choice and the sidecars parsing. Not yet tried against a live gnosis node; I will check it when v0.7.1 is deployed.

🤖 Generated with Claude Code

@PabloCastellano
PabloCastellano force-pushed the fix/blob-route-fallback branch from 69622bf to 933c4df Compare October 29, 2026 11:52
v0.7.0 reads the raw blobs only from /eth/v1/beacon/blobs. Which routes a beacon node
serves depends on the node and its version, not on the network. Measured on the
RPC endpoints (2026-10-24):

  gnosis   Lighthouse v8.2.1       /blob_sidecars only (404 on /blobs)
  sepolia  Lighthouse v8.3.0-rc.0  /blobs only (404 on /blob_sidecars)
  mainnet  Lighthouse v8.2.3       both
  hoodi    Lighthouse v8.3.2       both

With v0.7.0 the gnosis indexer cannot index ("Blobs not found", crash loop).

On a 404 the processor now tries the other route at once, and remembers (process wide)
the one that worked, so the next slot asks it first. Only when both answer nothing does
it wait and retry. The sidecars are sorted by index and only their blobs are used: the
commitments come from the block and the proofs are computed, as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@PabloCastellano
PabloCastellano force-pushed the fix/blob-route-fallback branch from 933c4df to 7b45c5d Compare October 29, 2026 11:57
@PabloCastellano
PabloCastellano merged commit 9fd0892 into master Oct 29, 2026
1 check passed
@PabloCastellano
PabloCastellano deleted the fix/blob-route-fallback branch October 29, 2026 19:07
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