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

Optimize GetDuties to not call Eth1 functions #5516

Merged
merged 14 commits into from
Apr 20, 2020

Conversation

0xKiwi
Copy link
Contributor

@0xKiwi 0xKiwi commented Apr 19, 2020

This is part of #5493, while not directly optimizing block slot estimation, this change removes unneeded calls to Eth1 for every inactive validator when the result wasn't even used.

Note, this will change metrics how metrics are reported for UNKNOWN_STATUS and DEPOSITED, now a validator isn't marked as DEPOSITED in the metrics until it's deposit has been processed by the chain.

@0xKiwi 0xKiwi requested a review from a team as a code owner April 19, 2020 19:28
ca, ok := committeeAssignments[idx]
if ok {
assignment.Committee = ca.Committee
assignment.Status = vs.assignmentStatus(idx, s)
assignment.ValidatorIndex = idx
assignment.PublicKey = pubKey
Copy link
Member

Choose a reason for hiding this comment

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

Are you still assigning PublicKey?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's set by default on top, look at the collapsed code above.

@prylabs-bulldozer prylabs-bulldozer bot merged commit 60bf3ed into prysmaticlabs:master Apr 20, 2020
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.

None yet

2 participants