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

Fix monitor service for Electra #14853

Merged
merged 4 commits into from
Feb 3, 2025
Merged

Fix monitor service for Electra #14853

merged 4 commits into from
Feb 3, 2025

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Jan 31, 2025

What type of PR is this?

Other

What does this PR do? Why is it needed?

Electra attestations can include attesting indices from multiple committees, where the committee indices are present in att.CommitteeBitsVal().BitIndices(). Using att.GetData().CommitteeIndex for an Electra attestation will always return a single 0 value (which is also wrong for single-committee Electra attestations with a committee other than 0).

The same method can be used for pre-Electra attestations and the result will be the same as calling att.GetData().CommitteeIndex. Therefore we can use the same logic for both versions.

Acknowledgements

@rkapka rkapka added the Electra electra hardfork label Jan 31, 2025
@rkapka rkapka requested a review from a team as a code owner January 31, 2025 04:27
@rkapka rkapka enabled auto-merge January 31, 2025 04:29
@rkapka rkapka added this pull request to the merge queue Feb 3, 2025
Merged via the queue into develop with commit 967e925 Feb 3, 2025
17 checks passed
@rkapka rkapka deleted the electra-monitor branch February 3, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Electra electra hardfork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants