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

fix(sync): allow a greater buffer for recency threshold default #114

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Oct 5, 2023

While this is a quick fix to prevent the syncer from doing additional unnecessary work (eagerly requesting a new Head from the network), the proper solution here would be to implement metrics to gain better insight into average block time of the network and to allow the recencyThreshold to be determined based on an average time of the last n amount of blocks.

Copy link

@ramin ramin left a comment

Choose a reason for hiding this comment

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

got an in person explainer, :shipit:

@renaynay renaynay merged commit 30117cf into celestiaorg:main Oct 5, 2023
3 checks passed
@renaynay renaynay deleted the recency branch October 5, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants