feat: add --with-receipts to import-era to store receipts#26436
Open
lean-apple wants to merge 9 commits into
Open
feat: add --with-receipts to import-era to store receipts#26436lean-apple wants to merge 9 commits into
-with-receipts to import-era to store receipts#26436lean-apple wants to merge 9 commits into
Conversation
lean-apple
force-pushed
the
import-erae-store-receipt
branch
from
July 18, 2026 20:19
1390eac to
7f7005f
Compare
Stop marking the Execution stage checkpoint done on receipt import: unlike headers/bodies, execution also writes state, which the import never does. ensure_consistency prunes imported receipts before a real sync re-executes the range. Convert .ere receipts via a runtime downcast instead of a Receipt: From<SlimReceipt> bound, so node types that never import .ere receipts aren't forced to satisfy it on the shared CLI entrypoints.
With --with-receipts, resume from the receipts tip instead of the headers tip so files covering already-imported blocks are re-read and their receipts filled in. Blocks at or below the headers tip skip the header/body write and only get receipts; blocks above are written in full.
…h into import-erae-store-receipt
lean-apple
marked this pull request as ready for review
July 20, 2026 03:32
lean-apple
requested review from
Rjected,
gakonst,
mattsse,
mediocregopher and
shekhirin
as code owners
July 20, 2026 03:32
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.
Adds
--with-receiptstoimport-era, writing receipts to the Receipts static file alongside headers and bodies.Receipts are checked against each header's receipts root and logs bloom (from Byzantium on), can be backfilled onto an earlier header-only import, and never mark the Execution stage done since no state is produced.