framework: advance sync verify_checkpoint past genesis + advanced-state vectors#672
Merged
tcoratger merged 1 commit intoleanEthereum:mainfrom Apr 22, 2026
Merged
Conversation
…ing vectors Extends the sync fixture so verify_checkpoint can exercise states produced by walking an empty-block chain past genesis: - _make_verify_checkpoint accepts an optional anchorSlot input. Zero (default) keeps genesis behaviour; positive values call build_anchor to walk through the slot and emit the advanced state. - Output grows an anchorSlot field echoing the input so consumers see exactly which state was verified. Adds three vectors: - Advanced anchor at slot 3 with four validators (accepted) - Advanced anchor at slot 10 with four validators (accepted) - Advanced anchor at slot 5 with eight validators (accepted) Closes the round-2 audit gap SY-1 that could not be pinned while the sync fixture was locked to genesis states. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
tcoratger
added a commit
to tcoratger/leanSpec
that referenced
this pull request
Apr 27, 2026
Absorbs 14 commits from main and resolves two textual conflicts in genesis/config.py and the matching test (PR leanEthereum#683 deleted the dead GenesisConfig.create_state helper that this branch had refactored to take a fork argument; production code goes through fork.generate_genesis directly, so the wrapper is genuinely dead). Reroutes two stale subspecs.containers imports left behind by the auto-merge: a new test file from PR leanEthereum#684 (Checkpoint __lt__) and a sync test fixture from PR leanEthereum#672. Both now resolve through forks.devnet4.containers. Tightens the docstring and inline comment introduced for update_safe_target by PR leanEthereum#680 to follow the project's documentation rules (short sentences, bullets over paragraphs). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
🗒️ Description
Extends the `sync` fixture so `verify_checkpoint` can exercise states produced by walking an empty-block chain past genesis.
Framework change
Vectors landed
Why client-relevant
Real checkpoint-sync downloads fetch advanced (non-genesis) states. The existing `verify_checkpoint` vectors only exercise fresh genesis states, so deserialization bugs that only surface when `historical_block_hashes` is non-empty were not pinned.
🔗 Related Issues or PRs
Closes round-2 audit gap SY-1.
✅ Checklist
```console
uvx tox -e all-checks
```
🤖 Generated with Claude Code