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

Use optimistic head slot when finding common ancestor #4925

Merged
merged 2 commits into from
Feb 2, 2022

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented Feb 2, 2022

PR Description

Use the optimistic head slot (if there is one) rather than the fully verified head slot when finding a common ancestor to start syncing from.

Avoids re-downloading blocks we have already optimistically imported.

Fixed Issue(s)

fixes #4785

Documentation

  • I thought about documentation and added the documentation label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Avoids restarting sync from the finalized slot unnecessarily when optimistic sync is in use.
Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

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

LGTM

@ajsutton ajsutton enabled auto-merge (squash) February 2, 2022 22:27
@ajsutton ajsutton merged commit 662887d into Consensys:master Feb 2, 2022
@ajsutton ajsutton deleted the sync-from-optimistic-head branch February 2, 2022 22:44
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.

[Merge] Search for common ancestors starting from optimistic head
2 participants