Skip to content

fix(fast-inbox): replay published blocks by message count - #25408

Open
spalladino wants to merge 1 commit into
spl/inbox-content-aware-rollbackfrom
spl/inbox-count-addressed-replay
Open

fix(fast-inbox): replay published blocks by message count#25408
spalladino wants to merge 1 commit into
spl/inbox-content-aware-rollbackfrom
spl/inbox-count-addressed-replay

Conversation

@spalladino

Copy link
Copy Markdown
Contributor

Context

The message-only Inbox rolling hash survives an L1 reorg that re-mines the same ordered leaves under different bucket boundaries. An already-published block remains valid in that case, but a fresh node could not replay it when an intermediate committed leaf count was no longer a boundary in the current Inbox partition.

Approach

Historical message retrieval now reads exact compact leaf-count ranges directly from the archiver's indexed message log, validates that each range is fully synced, and no longer resolves its bounds through current bucket metadata. World-state applies those ranges block by block without a silent empty fallback, and validator checkpoint reconstruction uses the same count-addressed semantics for its historical start while retaining the current-bucket requirement at the final endpoint.

The shared archiver mocks now keep indexed leaves separate from replaceable bucket metadata, enabling a fresh-world-state regression that replays published blocks after a same-message bucket merge. Live bucket-range selection and proposal validation remain unchanged.

Stacked on #25398

Fixes A-1924

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.

1 participant