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(l1): snap sync #1209

Merged
merged 321 commits into from
Dec 10, 2024
Merged

feat(l1): snap sync #1209

merged 321 commits into from
Dec 10, 2024

Conversation

fmoletta
Copy link
Contributor

@fmoletta fmoletta commented Nov 19, 2024

Motivation
Support snap-sync

Description
Implements the snap-sync cycle with the following caveats:

  • No state healing is implemented (We asume all the state is available)
  • Storage ranges are fetched in full (We don't partition storage range requests, if an account's storage wasn't fully fetched as part of a batch it is requested again)
  • Minimum parallelization (We are currenltly testing against a single node so not all parallelizable processes are being parallelized.
  • Receipts are not fetched (waiting on GetReceipts (0x0f) #386)
  • State is not blocked during sync (this could lead to the wrong data being sent by rpc and p2p during an active sync)

Other changes:

  • Move crates/networking/p2p/README.rs to crates/networking/docs/Network.md
  • Add doc for Sync in crates/networking/docs/Sync
  • Reduce size of RLPxError

Closes #issue_number

@fmoletta fmoletta changed the title [WIP] feat: snap sync feat: snap sync Dec 4, 2024
@fmoletta fmoletta changed the title feat: snap sync feat(l1): snap sync Dec 5, 2024
@fmoletta fmoletta marked this pull request as ready for review December 5, 2024 13:23
@fmoletta fmoletta requested a review from a team as a code owner December 5, 2024 13:23
Copy link
Collaborator

@mpaulucci mpaulucci left a comment

Choose a reason for hiding this comment

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

🔥 🔥 🔥

@fmoletta fmoletta enabled auto-merge December 10, 2024 13:49
@fmoletta fmoletta added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 88c6a8c Dec 10, 2024
15 checks passed
@fmoletta fmoletta deleted the snap-sync branch December 10, 2024 14:27
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.

2 participants