mirror_worker: implement the add-entries submission API - #264
Draft
lukevalenta wants to merge 2 commits into
Draft
mirror_worker: implement the add-entries submission API#264lukevalenta wants to merge 2 commits into
lukevalenta wants to merge 2 commits into
Conversation
lukevalenta
force-pushed
the
lvalenta/mirror-worker-add-entries
branch
2 times, most recently
from
July 28, 2026 14:32
e3f7fa5 to
0a3922c
Compare
Make read_edge_tiles, the TileWithBytes struct (with public fields), and HashReaderWithOverlay public so the mirror worker can share the committed right-edge-tile reader instead of carrying its own copy. Switch the storage-read helpers (read_edge_tiles, tile_reader_for_indexes) and ProofError::Other from anyhow::Error to worker::Error, matching ObjectBackend's error type. anyhow stays for the sequencer paths that rely on its blanket error conversion.
lukevalenta
force-pushed
the
lvalenta/mirror-worker-add-entries
branch
from
July 28, 2026 21:13
0a3922c to
e3ae842
Compare
Stream and verify entry packages against the target pending checkpoint, persist them as tlog-tiles entry bundles and hash tiles (see commit.rs), and advance the persisted-entry frontier. A complete upload cosigns the mirror checkpoint and returns 200; a client-truncated upload persists the verified prefix and returns 202 with the advanced next entry so the client can resume (C2SP/C2SP#253). Includes body-decoding (transparent gzip), a streaming buffer adapter, per-origin prefixed R2 storage, and the ticket-sealer for recovering a past pending checkpoint on resume.
lukevalenta
force-pushed
the
lvalenta/mirror-worker-add-entries
branch
from
July 29, 2026 13:03
e3ae842 to
0b8665c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stream and verify entry packages against the target pending checkpoint, persist them as tlog-tiles entry bundles and hash tiles (see commit.rs), and advance the persisted-entry frontier. A complete upload cosigns the mirror checkpoint and returns 200; a client-truncated upload persists the verified prefix and returns 202 with the advanced next entry so the client can resume (C2SP/C2SP#253).
Includes body-decoding (transparent gzip), a streaming buffer adapter, per-origin prefixed R2 storage, and the ticket-sealer for recovering a past pending checkpoint on resume.