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

Add capella cases for RPC calls #11759

Merged
merged 9 commits into from
Dec 14, 2022
Merged

Add capella cases for RPC calls #11759

merged 9 commits into from
Dec 14, 2022

Conversation

terencechain
Copy link
Member

Add missing Capella cases for these RPC calls + tests:

  • GetValidatorParticipation
  • GetValidatorPerformance
  • GetIndividualVotes

@terencechain terencechain added Ready For Review API Api related tasks labels Dec 13, 2022
@terencechain terencechain self-assigned this Dec 13, 2022
@terencechain terencechain requested a review from a team as a code owner December 13, 2022 04:14
@@ -528,7 +528,7 @@ func (bs *Server) GetValidatorParticipation(
if err != nil {
return nil, status.Errorf(codes.Internal, "Could not pre compute attestations: %v", err)
}
case version.Altair, version.Bellatrix:
case version.Altair, version.Bellatrix, version.Capella:
Copy link
Member

Choose a reason for hiding this comment

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

Do you think instead of switch we can just do

if stateversion >= version.Altair

That way we dont have to do this again in the next fork

@@ -693,7 +693,7 @@ func (bs *Server) GetValidatorPerformance(
return nil, err
}
validatorSummary = vp
case version.Altair, version.Bellatrix:
case version.Altair, version.Bellatrix, version.Capella:
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@@ -865,7 +865,7 @@ func (bs *Server) GetIndividualVotes(
if err != nil {
return nil, status.Errorf(codes.Internal, "Could not pre compute attestations: %v", err)
}
case version.Altair, version.Bellatrix:
case version.Altair, version.Bellatrix, version.Capella:
Copy link
Member

Choose a reason for hiding this comment

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

And here too

@prylabs-bulldozer prylabs-bulldozer bot merged commit 62ffed7 into develop Dec 14, 2022
@delete-merged-branch delete-merged-branch bot deleted the capella-rpcs branch December 14, 2022 05:08
roberto-bayardo pushed a commit to roberto-bayardo/prysm that referenced this pull request Dec 17, 2022
* Add capella cases for rpc calls

* Use if else

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants