Skip to content

feat(consensus): adapt header state_root validation for zkTrie before MPTFork #26

Closed

Description

@panos-xyz

Background

Before MPTFork, Morph uses zkTrie state instead of MPT state.
Current header/state_root handling needs explicit adaptation for pre-MPTFork behavior.

Functional Description

Implement pre-MPTFork header behavior:

  1. Do not enforce header state_root validation before MPTFork.
  2. Ensure header state_root is set/treated as zkTrie state root in pre-MPTFork path.

Scope

  • Update header/state_root validation logic in consensus/execution path
  • Gate behavior by fork condition (MPTFork activation)
  • Keep post-MPTFork behavior unchanged (normal validation path)
  • Update related tests/docs

Acceptance Criteria

  • Before MPTFork: no strict state_root validation error is raised
  • Before MPTFork: header state_root follows zkTrie state root semantics
  • After MPTFork: state_root validation works as expected
  • cargo check --workspace passes
  • Related tests pass

Reference

  • Fork: MPTFork

Activity

  1. self-assigned this
    on Feb 11, 2026
  2. added
    enhancement
    on Feb 11, 2026
  3. added theissue type on Feb 11, 2026
  4. added 2 commits that reference this issue on Mar 3, 2026
    ad05084
    d39b137
  5. added a commit that references this issue on Apr 7, 2026
    74c1a9c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions