Skip to content

cmd/keeper, core, eth/catalyst: add block validation in keeper#34087

Draft
gballet wants to merge 7 commits into
ethereum:masterfrom
gballet:kw/stateless-modifications
Draft

cmd/keeper, core, eth/catalyst: add block validation in keeper#34087
gballet wants to merge 7 commits into
ethereum:masterfrom
gballet:kw/stateless-modifications

Conversation

@gballet
Copy link
Copy Markdown
Member

@gballet gballet commented Mar 25, 2026

This is a rework of #34007 because I couldn't directly push to the source branch.

The changes are preserving the cross-validation, which makes sense as this is to be used in DVT and as a validation step vefore launching a prover.

The initial goals have been preserved as much as possible:

  • Avoid duplications in keeper
  • Enable block verification in keeper
  • Reduce the code footprint and move header verification to ExecuteStateless

@gballet gballet added this to the 1.17.2 milestone Mar 25, 2026
@gballet gballet added the zk label Mar 25, 2026
@gballet gballet changed the title Kw/stateless modifications cmd/keeper, core, eth/catalyst: add block validation in keeper Mar 25, 2026
@gballet gballet force-pushed the kw/stateless-modifications branch from 300adbb to f7ed82b Compare March 25, 2026 15:51
@rjl493456442 rjl493456442 modified the milestones: 1.17.2, 1.17.3 Mar 30, 2026
Comment thread core/stateless.go
return common.Hash{}, common.Hash{}, err
}
if err = validator.ValidateState(block, db, res, true); err != nil {
if err = validator.ValidateState(block, db, res, validateHeader); err != nil {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's incorrect.

In the keeper, we want to validate the header (validateHeader = true) and also we want to verify various of hashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants