fix: parse Lighthouse execution_proofs response shape#641
Merged
barnabasbusa merged 3 commits intomasterfrom Apr 15, 2026
Merged
fix: parse Lighthouse execution_proofs response shape#641barnabasbusa merged 3 commits intomasterfrom
barnabasbusa merged 3 commits intomasterfrom
Conversation
The /eth/v1/beacon/execution_proofs/{block_root} endpoint returns each
proof wrapped in a signed envelope ({message: {proof_type, proof_data,
public_input}, validator_index, signature}) and does not include slot,
block_hash, or block_root. The previous struct expected those fields at
the top level, so every proof unmarshalled empty and tripped a
"strconv.ParseUint: parsing \"\"" warning, leaving the proofs panel
blank.
Match Lighthouse's actual schema, decode proof_data from hex, and source
slot/block_root/block_hash from the slot page context.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The `div` template helper requires float64 args, but `len` returns int, so rendering any execution proof larger than 1 KB raised "wrong type for value; expected float64; got int" and 500'd the slot page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Match the convention used for attestations, transactions, and other slot-page tabs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pk910
approved these changes
Apr 15, 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.
Summary
/eth/v1/beacon/execution_proofs/{block_root}Lighthouse endpoint returns each proof wrapped in a signed envelope ({message: {proof_type, proof_data, public_input}, validator_index, signature}) — not the flat{slot, block_hash, block_root, proof_data}shape Dora expected after Display optional execution proofs #593.Error parsing proof slot error="strconv.ParseUint: parsing \"\": invalid syntax", and the proofs panel was always empty.ExecutionProofto match Lighthouse, decodeproof_datafrom hex, and sourceslot/block_root/block_hashfrom the slot page context (since the API doesn't include them).Test plan
go build ./handlers/... ./clients/consensus/rpc/... ./types/...cl-1-lighthouse-reth)🤖 Generated with Claude Code