Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(consensus): Export state roots as a bounded hash range #30

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

samcm
Copy link
Member

@samcm samcm commented Jun 29, 2022

This change adds two new metrics:

  • eth_con_beacon_finality_checkpoint_hash following the head checkpoints for finalized/justified/previous_justified
  • eth_con_beacon_head_slot_hash following the head slot

These metrics observe the state roots, and consistently convert them in to an integer between 0 and 65536. These metrics can then be used to observe which chain a beacon node is following by comparing this value at the current time to other nodes.

To work around scrape intervals, a query like this can be used to try and avoid noise:
max(eth_con_beacon_head_slot_hash)[1m].

@samcm samcm merged commit 9cd315e into main Jun 29, 2022
@samcm samcm deleted the feat/consensus-state-root-hash branch June 29, 2022 03:37
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