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 some more slack for recency estimation #97

Merged
merged 5 commits into from
Aug 25, 2023

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Aug 23, 2023

Doubles the blocktime + some drift to allow a bit more slack for recency determination. The aim here is to increase the threshold for requesting head over Exchange if it isn't completely necessary.

resolves #98

@nashqueue
Copy link
Member

Had an idea related to this #98

@codecov-commenter
Copy link

Codecov Report

Merging #97 (ba37862) into main (f79c35c) will increase coverage by 0.42%.
The diff coverage is 92.30%.

@@            Coverage Diff             @@
##             main      #97      +/-   ##
==========================================
+ Coverage   68.48%   68.91%   +0.42%     
==========================================
  Files          37       37              
  Lines        2929     2937       +8     
==========================================
+ Hits         2006     2024      +18     
+ Misses        772      764       -8     
+ Partials      151      149       -2     
Files Changed Coverage Δ
sync/sync_head.go 69.23% <85.71%> (+0.72%) ⬆️
sync/options.go 88.46% <100.00%> (+2.74%) ⬆️

... and 3 files with indirect coverage changes

nashqueue
nashqueue previously approved these changes Aug 24, 2023
Copy link
Member

@nashqueue nashqueue left a comment

Choose a reason for hiding this comment

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

Thank you

Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

one recommended nit and gtg

@renaynay renaynay enabled auto-merge August 25, 2023 14:33
@renaynay renaynay merged commit 52e9af7 into celestiaorg:main Aug 25, 2023
@renaynay renaynay deleted the recency branch August 25, 2023 14:33
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.

Make isRecent not dependent on the blocktime
5 participants