Skip to content

Conversation

@dapplion
Copy link
Collaborator

Issue Addressed

From #8382 I noted that the logic in range sync to decide where to start syncing from is scattered. When manual finalization is triggered, sync will fetch useless epochs.

Proposed Changes

This is a somewhat sensitive change that I don't want to have buried in #8382. Since manual finalization is an avaialble feature in current stable I think it's okay to fix separately to #8382.

This PR merges the logic to decide if a peer:

  • is advanced or not
  • should trigger head or finalized sync

In a single function. Plus, the variant PeerSyncType::Advanced includes which slot sync should start from.

@dapplion dapplion requested a review from jxs as a code owner November 15, 2025 00:23
@dapplion dapplion added syncing ready-for-review The code is ready for review labels Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review The code is ready for review syncing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants