feat: add aggregated attestation inclusion distance#610
Merged
barnabasbusa merged 1 commit intomasterfrom Mar 18, 2026
Merged
Conversation
Adds average attestation inclusion distance (based on cached blocks only, last 2 epochs) to the individual validator page and the validator summary page, broken down by EL/CL client combination. - New getValidatorInclusionDistance() on the activity cache returns attestation count and total delay for the last N epochs without touching the database - Exposed through Indexer and ChainService layers - Validator detail page shows avg inclusion distance in the main info section (coloured green ≤1.01, yellow ≤1.3, red >1.3) - Validator summary page adds a 5th overview card and an "Avg. Inclusion Dist." column to both EL and CL breakdown tables, with matching fixed-width columns so both tables stay aligned Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pk910
approved these changes
Mar 18, 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
Adds aggregated attestation inclusion distance to Dora, computed exclusively from cached blocks (last 2 epochs) — no attestation database index required.
getValidatorInclusionDistanceon the in-memory activity cache returns attestation count and total delay for the last N epochs without any DB queriesTest plan
/validators/summary— confirm "Avg. Inclusion Distance" card appears in the overview row alongside the existing four cards/validator/{index}for an active validator — confirm "Avg. Inclusion Distance" row appears in the info card-) for pending/never-active validatorsINDEXER_IN_MEMORY_EPOCHS=2and verify only cached blocks are used (no DB attestation queries)🤖 Generated with Claude Code