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

Wait for one third before grabbing the lock #8348

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

terencechain
Copy link
Member

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

There's no reason to grab the attester lock before waiting 1/3 slot. At worst this would cause a lock contention when proposer and attester are perform together in the same slot

Which issues(s) does this PR fix?

Fixes #8346

Other notes for review
N/A

@terencechain
Copy link
Member Author

credit to @potuz for reporting and analyzing this at first place

@rauljordan rauljordan merged commit b8037b0 into develop Jan 27, 2021
@delete-merged-branch delete-merged-branch bot deleted the wait-before-grab-lock branch January 27, 2021 18:06
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.

validator client proposes late when attesting on the same slot
2 participants