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

Correctly return electra attestations for block getter #13993

Merged
merged 1 commit into from
May 14, 2024

Conversation

terencechain
Copy link
Member

Block getter Attestations() returns non-Electra attestations even if the block version is Electra. This PR ensures the correct version of attestation is returned with a unit test.

@terencechain terencechain added the Ready For Review A pull request ready for code review label May 13, 2024
@terencechain terencechain requested a review from a team as a code owner May 13, 2024 19:43
@@ -1116,7 +1116,7 @@ func (b *BeaconBlockBody) Attestations() []interfaces.Attestation {
return nil
}
atts = make([]interfaces.Attestation, len(b.attestationsElectra))
for i, a := range b.attestations {
for i, a := range b.attestationsElectra {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

@terencechain terencechain added this pull request to the merge queue May 14, 2024
Merged via the queue into develop with commit 6e81b4e May 14, 2024
17 checks passed
@terencechain terencechain deleted the fix-attestations-getter branch May 14, 2024 03:39
ErnestK pushed a commit to ErnestK/prysm that referenced this pull request May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants