Skip to content

feat: always update safe head#434

Merged
frisitano merged 2 commits intomainfrom
feat/always-update-safe-head
Nov 24, 2025
Merged

feat: always update safe head#434
frisitano merged 2 commits intomainfrom
feat/always-update-safe-head

Conversation

@frisitano
Copy link
Collaborator

Overview

This PR changes the consolidation logic such that we always update the fork choice state if the block number is greater than the finalized block number. This allows us to account for the case in which a reorg has occurred and the new batch is different from the old. In the model on the main branch, we would be eventually consistent when attributes.number > fcs.safe_blcock_info().number but the model in this PR reduces latency to arrive at the correct state.

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 24, 2025

CodSpeed Performance Report

Merging #434 will not alter performance

Comparing feat/always-update-safe-head (40cf211) with main (d6a78f9)

Summary

✅ 2 untouched

@frisitano frisitano merged commit 81c904c into main Nov 24, 2025
15 checks passed
@frisitano frisitano deleted the feat/always-update-safe-head branch November 24, 2025 05:56
frisitano added a commit that referenced this pull request Nov 24, 2025
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