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

feat(node): Add syncing window for header sync #309

Merged
merged 6 commits into from
Jul 1, 2024

Conversation

fl0rek
Copy link
Member

@fl0rek fl0rek commented Jun 25, 2024

When starting a new syncing session, check whether header rigth after that (if present in store) is still withing syncing window. This way we fetch at most one syncing batch (512) of old headers outside of syncing window without complicating headers sessions too much.

@fl0rek fl0rek force-pushed the feat/syncing-range branch from 5b658f2 to e940002 Compare June 27, 2024 08:24
@fl0rek fl0rek force-pushed the feat/syncing-range branch from b60493b to ea7d372 Compare June 27, 2024 08:41
@fl0rek fl0rek marked this pull request as ready for review June 27, 2024 09:20
node/src/syncer.rs Outdated Show resolved Hide resolved
node/src/syncer.rs Outdated Show resolved Hide resolved
node/src/syncer.rs Outdated Show resolved Hide resolved
node/src/syncer.rs Outdated Show resolved Hide resolved
fl0rek and others added 2 commits June 28, 2024 13:52
@fl0rek fl0rek force-pushed the feat/syncing-range branch from 0e3df13 to dada61a Compare July 1, 2024 08:44
node/src/store/utils.rs Outdated Show resolved Hide resolved
@fl0rek fl0rek requested a review from oblique July 1, 2024 12:21
Copy link
Member

@oblique oblique left a comment

Choose a reason for hiding this comment

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

LGTM

@zvolin zvolin merged commit c842ed3 into eigerco:main Jul 1, 2024
6 checks passed
This was referenced Jul 1, 2024
@zvolin zvolin mentioned this pull request Jul 25, 2024
@zvolin zvolin mentioned this pull request Aug 13, 2024
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