Skip to content

Improve sync behaviour#145

Merged
bitmine-mihir merged 5 commits into
mainfrom
devnet-5
Jul 9, 2026
Merged

Improve sync behaviour#145
bitmine-mihir merged 5 commits into
mainfrom
devnet-5

Conversation

@bitmine-mihir

Copy link
Copy Markdown
Collaborator

No description provided.

uink45 and others added 5 commits July 9, 2026 12:58
When blocks are imported, update the network view's finalized slot if a newer finalized checkpoint is detected from the client state or fork choice. This ensures the network view stays synchronized with the latest finalized state. Added test validation to verify network finalized slot is properly refreshed after finalized block imports.
Add state-backed helpers and finalized derivation to fork-choice (state_for_block_index, derive/refresh finalized from head) and ensure finalized is recomputed/published when importing state-backed blocks or recomputing head. Introduce client-side state validator pubkey validation and strengthen checkpoint sync behavior (abort startup on checkpoint failure when configured). Simplify and harden validator pubkey packing/refresh logic to preserve verified state pubkeys and initialize only when empty. Improve reqresp exchange matching/completion (track matched roots, safer close/reset handling) and add unit tests plus CMake entries for reqresp and new validation/anchor regressions.
@bitmine-mihir bitmine-mihir merged commit f974b9f into main Jul 9, 2026
5 checks passed
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