Skip to content

refactor(testing): resolve_checkpoint delegates to resolve_block_root#967

Merged
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:audit/arch-12-resolve-checkpoint-delegate
Jun 12, 2026
Merged

refactor(testing): resolve_checkpoint delegates to resolve_block_root#967
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:audit/arch-12-resolve-checkpoint-delegate

Conversation

@tcoratger

Copy link
Copy Markdown
Collaborator

Summary

resolve_checkpoint re-implemented the same registry lookup and hash_tree_root call that resolve_block_root already performs. This routes root resolution through the existing function, removing the duplication.

The behavior is identical:

  • The root is computed via the existing block-root resolver, which performs the same not-found check and hash_tree_root of the labeled block.
  • The slot still falls back to the labeled block's own slot when no override is given, and the not-found error raises before the slot lookup, so the registry access stays safe.

Testing

just check passes (lint, format, type check, codespell, mdformat).

🤖 Generated with Claude Code

Route the checkpoint root through the existing block-root resolver
instead of re-implementing the registry lookup and hash_tree_root call.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tcoratger tcoratger merged commit 73eeaa9 into leanEthereum:main Jun 12, 2026
14 checks passed
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