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

only update head at 10 seconds when validating #13570

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

potuz
Copy link
Contributor

@potuz potuz commented Feb 1, 2024

Do not call to update head at 10 seconds if the beacon is not serving validators.

@potuz potuz requested a review from a team as a code owner February 1, 2024 16:06
@@ -95,7 +95,9 @@ func (s *Service) spawnProcessAttestationsRoutine() {
return
case slotInterval := <-ticker.C():
Copy link
Member

Choose a reason for hiding this comment

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

This ticker is also triggered at 0s, so either it's a bug or we need to update the PR title and description

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why?

Copy link
Member

Choose a reason for hiding this comment

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

Nvm. I see the if slotInterval.Interval > 0 { below

terencechain
terencechain previously approved these changes Feb 1, 2024
@potuz potuz added this pull request to the merge queue Mar 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 12, 2024
@potuz potuz added this pull request to the merge queue Mar 12, 2024
Merged via the queue into develop with commit 02cbcf8 Mar 12, 2024
17 checks passed
@potuz potuz deleted the update_10_seconds_validating branch March 12, 2024 15:32
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.

3 participants