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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Fix monitor service for Electra #14853

wants to merge 3 commits into from

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
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.

1 participant