blockblaz / blockblaz/zeam

Support checkpoint sync from head state for fork selection during long non-finality periods

Open
#586 0 comments 0 reactions 1 assignee Claimed by @ch4r10t33r View on GitHub
Dominant language
Zig
Stars
97
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Scenarios to Handle

1. Checkpoint sync from head state (non-finalized anchor)
- Allow selecting a specific fork by checkpoint syncing from a head state instead of finalized state
- The anchor of fork choice will not be finalized but should be treated similarly to prevent syncing blocks before it
2. Anchor management during long non-finality
- Update the anchor periodically even when finalization doesn't happen
- Similar to how we update finalized checkpoints and prune the proto array, but without actual finalization
Block syncing boundaries
3. Stop syncing blocks that are before the anchor (not just before latest finalized)
- Since latest finalized will be far back during non-finality, also check against the selected anchor
- Fork choice initialization with head state
4. When using head state as anchor: set both latest_justified and latest_finalized from head state
- Different from finalized state anchor where only latest_finalized should be set

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.