Skip to content

feat: scalffold new snap-sync crate with minimal pivot module - #27054

Open
lean-apple wants to merge 4 commits into
paradigmxyz:mainfrom
lean-apple:feat/snap-sync-crate
Open

feat: scalffold new snap-sync crate with minimal pivot module#27054
lean-apple wants to merge 4 commits into
paradigmxyz:mainfrom
lean-apple:feat/snap-sync-crate

Conversation

@lean-apple

@lean-apple lean-apple commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Related to OSS-744.

Adds reth-snap-sync with pivot selection and a session that identifies each attempt by its pivot hash and state root. Prefers a recent finalized block, falling back to 64 blocks behind the head when needed.

The session waits when no eligible pivot is available, replaces or clears an unstarted target as the chain changes, and signals cancellation to outstanding work.

@lean-apple
lean-apple marked this pull request as ready for review September 7, 2026 19:39
@lean-apple
lean-apple requested a review from gakonst as a code owner September 7, 2026 19:39
Selection stopped at the finalized block, so a finalized block predating
EIP-7928 activation reported no pivot at all even when the head distance
anchor was eligible. Try that fallback before waiting.
A snap attempt now has a lifecycle: it waits explicitly while no block is
eligible, replaces or drops a target no work has taken yet as the chain
moves, hands a started target to a single owner, and cancels outstanding
work.

Advancing a target that is already downloading, and the downloads
themselves, stay out of scope here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant