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(ethexe): Deep sync, faster chain load #4063

Merged
merged 25 commits into from
Aug 5, 2024
Merged

feat(ethexe): Deep sync, faster chain load #4063

merged 25 commits into from
Aug 5, 2024

Conversation

ukint-vs
Copy link
Member

@ukint-vs ukint-vs commented Jul 16, 2024

Resolves # .

  • add latest valid block height to db
  • fetch all missing blocks in batch
  • DEEP_SYNC const. Difference in blocks to start fast sync.
  • Fetch block with events at the same time.

If diff in blocks is more than DEEP_SYNC then we will fetch block range by numbers from alloy.

@reviewer-or-team

@ukint-vs ukint-vs self-assigned this Jul 16, 2024
ethexe/db/src/database.rs Outdated Show resolved Hide resolved
ethexe/observer/src/query.rs Outdated Show resolved Hide resolved
ethexe/observer/src/query.rs Outdated Show resolved Hide resolved
ethexe/observer/src/query.rs Outdated Show resolved Hide resolved
@ukint-vs ukint-vs changed the title feat(ethexe): Add latest valid block to db, fetch committed blocks feat(ethexe): Deep sync, faster chain load Aug 1, 2024
@ukint-vs ukint-vs added A0-pleasereview PR is ready to be reviewed by the team C2-refactoring Refactoring proposal labels Aug 1, 2024
ethexe/observer/src/query.rs Outdated Show resolved Hide resolved
ethexe/observer/src/query.rs Outdated Show resolved Hide resolved
ethexe/observer/src/query.rs Outdated Show resolved Hide resolved
ethexe/observer/src/query.rs Outdated Show resolved Hide resolved
@ukint-vs ukint-vs merged commit 4a78c74 into master Aug 5, 2024
10 checks passed
@ukint-vs ukint-vs deleted the vs/ethexe-sync branch August 5, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-pleasereview PR is ready to be reviewed by the team C2-refactoring Refactoring proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants