fix(indexer): populate ExecutionExtraData on Gloas+ blocks#716
Merged
Conversation
…oas+ For EIP-7732 (Gloas+) blocks the execution payload lives in a separate envelope, so body.ExecutionPayload is nil and getBlockExecutionExtraData returns (nil, nil). The in-memory BlockBodyIndex therefore had an empty ExtraData, which made the filtered-blocks NOT filter never exclude matching cached blocks (the empty-string short-circuit treated every block as "no extra data"). Read ExtraData from payload.Message.Payload.ExtraData alongside the other execution fields, mirroring the writedb path.
🤖 qu0b-reviewerSummaryThe PR populates Issues
Suggestions
Reviewed @ |
pk910
approved these changes
May 22, 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
body.ExecutionPayloadis nil andgetBlockExecutionExtraData(body)returns(nil, nil). The in-memoryBlockBodyIndex.ExecutionExtraDatawas therefore always empty for post-Gloas blocks./blocks/filteredfor the EL Extra Data filter: the inverted check short-circuits whenblockExtraData == ""to "include empty/null extra data", so every cached block slipped through regardless of whether it matched the filter. The screenshot from glamsterdam-devnet-4 shows e.g.f.extra=buildoor/ethrex 12.0.0with NOT checked still returning rows whose extra data is exactlybuildoor/ethrex 12.0.0.ExtraDatafrompayload.Message.Payload.ExtraDatanext to the other execution fields, mirroring whatwritedb.goalready does for the DB-write path. Finalized rows in the slots table were not affected because the write path was already correct — only the unfinalized cache filter saw empty extra data.Test plan
?f.extra=ethrex&f.einvert=onincludesethrexrows.blockExtraData=""for cached blocks pre-fix.blockExtraData="ethrex 13.0.0",matches=true, block is correctly skipped; result set contains only non-matching extra data.