{"eip":7862,"title":"Delayed State Root","description":"Separate state root computation from block validation","authors":["Charlie Noyes \u003ccharlie@paradigm.xyz\u003e","Dan Robinson \u003cdan@paradigm.xyz\u003e","Justin Drake \u003cjustin@ethereum.org\u003e","Toni Wahrstätter (@nerolation)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2024-12-23","discussionsTo":"https://ethereum-magicians.org/t/eip-7862-delayed-execution-layer-state-root/22559","repo":"EIPs","label":"EIP-7862","officialUrl":"https://eips.ethereum.org/EIPS/eip-7862","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7862.md","url":"https://eips.huatuo.xyz/eip-7862/","tldr":{"en":"Makes each block header carry the state root of the previous block instead of its own, taking expensive state-root computation off the critical path for builders and attesters.","ja":"各ブロックヘッダーに、そのブロック自身ではなく直前のブロックの state root を持たせる。高コストな state root の計算を、ビルダーとアテスターのクリティカルパスから外す。","ko":"각 블록 헤더가 자기 자신이 아니라 이전 블록의 state root를 담게 한다. 비용이 큰 state root 계산을 빌더와 attester의 크리티컬 패스에서 빼낸다.","zh":"让每个区块头携带上一个区块的状态根而不是自身的状态根，把昂贵的状态根计算从构建者和见证者的关键路径上移除。"},"tags":["consensus","state-root","performance","scaling","core"],"explainers":{"en":{"lang":"en","tldr":"Makes each block header carry the state root of the previous block instead of its own, taking expensive state-root computation off the critical path for builders and attesters.","tags":["consensus","state-root","performance","scaling","core"],"related":[7732,7928,7886],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7862/","markdown":"## What problem does it solve?\n\nEvery Ethereum block header contains `state_root`, the Merkle-Patricia root of all accounts after the block runs. Computing it means hashing every touched trie path, which is one of the slowest steps in producing and validating a block.\n\nThat cost lands in the worst place:\n\n- **Builders** recompute the root for every candidate block they try during the MEV auction, potentially thousands per slot.\n- **Validators** cannot attest that a block is valid until they have recomputed and checked its root.\n\nAs gas limits rise and timing tightens with ePBS ([EIP-7732](/eip-7732/)), this becomes a bottleneck. [EIP-7928](/eip-7928/) block-level access lists help parallelize execution, but not the root of the block currently being built.\n\n## How it works\n\nEIP-7862 shifts the root by one block. No header fields are added; only the meaning of `state_root` changes:\n\n- The header of block `n` contains the **post-state root of block `n-1`**, which is the pre-state of block `n`.\n- Clients keep a `last_computed_state_root`. Header validation checks `header.state_root == last_computed_state_root`.\n- After executing block `n`, the client computes its post-state root and stores it, ready to be checked against block `n+1`.\n- At the fork block `F`, the header carries the post-state root of `F-1`; from `F+1` on, each block carries its parent's.\n\nEffects:\n\n1. Builders compute one state root per slot (for the previous block), not one per candidate.\n2. Validators can attest after executing a block without waiting on its root.\n3. Root computation for block `n` can start as soon as it arrives, using block `n`'s access list to parallelize, and finish in time for block `n+1`.\n\n## Sample code\n\nThe core change in execution-spec style pseudocode:\n\n```python\ndef validate_header(chain, header):\n    # Delayed: this header commits to the PARENT's post-state.\n    if header.state_root != chain.last_computed_state_root:\n        raise InvalidBlock\n    # ... other checks unchanged\n\ndef state_transition(chain, block):\n    validate_header(chain, block.header)\n    out = apply_body(block_env, block.transactions, block.withdrawals)\n    if out.block_gas_used != block.header.gas_used:\n        raise InvalidBlock\n    # receipts, logs bloom, requests ... still validated as before\n\n    # Computed off the critical path; checked by the NEXT block.\n    chain.last_computed_state_root = state_root(block_env.state)\n    chain.blocks.append(block)\n```\n\n## Things to know\n\n- Status: **Draft**. It requires a hard fork; non-upgraded clients will reject the new blocks.\n- Light clients and anyone verifying state proofs see one extra slot of latency: proofs about block `n`'s result need block `n+1`'s header.\n- Clients must keep block `n`'s pre-state until its root has been included in the next block, and recompute `last_computed_state_root` along the new chain during reorgs.\n- The consensus-layer state root in ePBS payload envelopes is unaffected; only the execution header changes.\n- [EIP-7886](/eip-7886/) (Delayed execution) explores a related idea of separating block validation from execution.\n"},"ja":{"lang":"ja","tldr":"各ブロックヘッダーに、そのブロック自身ではなく直前のブロックの state root を持たせる。高コストな state root の計算を、ビルダーとアテスターのクリティカルパスから外す。","tags":["consensus","state-root","performance","scaling","core"],"related":[7732,7928,7886],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7862/","markdown":"## 何を解決するのか\n\nEthereum のすべてのブロックヘッダーには `state_root` が含まれています。これは、ブロック実行後のすべてのアカウントの Merkle-Patricia root です。これを計算するには、触れられたすべてのトライのパスをハッシュする必要があり、ブロックの生成と検証で最も遅いステップの 1 つです。\n\nこのコストは最悪の場所にかかっています。\n\n- **ビルダー**は、MEV オークションで試すすべての候補ブロックについて root を再計算します。1 スロットあたり数千回になることもあります。\n- **バリデーター**は、ブロックの root を再計算して確認するまで、そのブロックが有効だとアテストできません。\n\ngas リミットが上がり、ePBS（[EIP-7732](/eip-7732/)）でタイミングが厳しくなるにつれ、これがボトルネックになります。[EIP-7928](/eip-7928/) のブロックレベルアクセスリストは実行の並列化に役立ちますが、現在構築中のブロックの root には効きません。\n\n## 仕組み\n\nEIP-7862 は root を 1 ブロック分ずらします。ヘッダーフィールドは追加されず、`state_root` の意味だけが変わります。\n\n- ブロック `n` のヘッダーには、**ブロック `n-1` の実行後 state root** が入ります。これはブロック `n` の実行前ステートです。\n- クライアントは `last_computed_state_root` を保持します。ヘッダー検証では `header.state_root == last_computed_state_root` を確認します。\n- ブロック `n` を実行した後、クライアントはその実行後 state root を計算して保存し、ブロック `n+1` に対して確認できるようにします。\n- フォークブロック `F` では、ヘッダーに `F-1` の実行後 state root が入ります。`F+1` 以降は、各ブロックが親の root を持ちます。\n\n効果：\n\n1. ビルダーは、候補ごとではなく、スロットごとに（直前のブロックの）state root を 1 つ計算すれば済みます。\n2. バリデーターは、ブロックを実行した後、その root を待たずにアテストできます。\n3. ブロック `n` の root の計算は、ブロックが届いた時点で開始でき、ブロック `n` のアクセスリストを使って並列化し、ブロック `n+1` に間に合うように完了できます。\n\n## サンプルコード\n\nexecution-spec 風の疑似コードで示す、中心的な変更：\n\n```python\ndef validate_header(chain, header):\n    # Delayed: this header commits to the PARENT's post-state.\n    if header.state_root != chain.last_computed_state_root:\n        raise InvalidBlock\n    # ... other checks unchanged\n\ndef state_transition(chain, block):\n    validate_header(chain, block.header)\n    out = apply_body(block_env, block.transactions, block.withdrawals)\n    if out.block_gas_used != block.header.gas_used:\n        raise InvalidBlock\n    # receipts, logs bloom, requests ... still validated as before\n\n    # Computed off the critical path; checked by the NEXT block.\n    chain.last_computed_state_root = state_root(block_env.state)\n    chain.blocks.append(block)\n```\n\n## 知っておくべきこと\n\n- ステータス：**Draft**。ハードフォークが必要です。アップグレードしていないクライアントは新しいブロックを拒否します。\n- ライトクライアントや state proof を検証する人は、1 スロット分のレイテンシが増えます。ブロック `n` の結果に関する証明には、ブロック `n+1` のヘッダーが必要です。\n- クライアントは、ブロック `n` の実行前ステートを、その root が次のブロックに含まれるまで保持しなければならず、リオーグの際には新しいチェーンに沿って `last_computed_state_root` を再計算しなければなりません。\n- ePBS のペイロードエンベロープに含まれるコンセンサスレイヤーの state root は影響を受けません。変わるのは実行ヘッダーだけです。\n- [EIP-7886](/eip-7886/)（Delayed execution）は、ブロックの検証と実行を切り離すという、関連するアイデアを探っています。\n"},"ko":{"lang":"ko","tldr":"각 블록 헤더가 자기 자신이 아니라 이전 블록의 state root를 담게 한다. 비용이 큰 state root 계산을 빌더와 attester의 크리티컬 패스에서 빼낸다.","tags":["consensus","state-root","performance","scaling","core"],"related":[7732,7928,7886],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7862/","markdown":"## 어떤 문제를 해결하나요?\n\n모든 이더리움 블록 헤더에는 `state_root`가 들어 있습니다. 블록 실행 후 모든 계정의 Merkle-Patricia 루트입니다. 이를 계산하려면 건드려진 모든 트라이 경로를 해시해야 하며, 블록을 생산하고 검증하는 과정에서 가장 느린 단계 중 하나입니다.\n\n이 비용이 가장 나쁜 자리에 놓여 있습니다.\n\n- **빌더**는 MEV 경매에서 시도하는 모든 후보 블록마다 루트를 다시 계산하며, 슬롯당 수천 번이 될 수도 있습니다.\n- **검증자**는 블록의 루트를 다시 계산해 확인하기 전까지 그 블록이 유효하다고 attest할 수 없습니다.\n\ngas 한도가 오르고 ePBS([EIP-7732](/eip-7732/))로 타이밍이 빡빡해지면 이것이 병목이 됩니다. [EIP-7928](/eip-7928/)의 블록 수준 액세스 리스트는 실행을 병렬화하는 데 도움이 되지만, 지금 만들고 있는 블록의 루트에는 도움이 되지 않습니다.\n\n## 어떻게 동작하나요?\n\nEIP-7862는 루트를 한 블록만큼 옮깁니다. 헤더 필드는 추가되지 않고 `state_root`의 의미만 바뀝니다.\n\n- 블록 `n`의 헤더에는 **블록 `n-1`의 실행 후 state root**가 들어갑니다. 이는 블록 `n`의 실행 전 상태입니다.\n- 클라이언트는 `last_computed_state_root`를 유지합니다. 헤더 검증은 `header.state_root == last_computed_state_root`를 확인합니다.\n- 블록 `n`을 실행한 뒤 클라이언트는 그 실행 후 state root를 계산해 저장하고, 블록 `n+1`과 대조할 준비를 합니다.\n- 포크 블록 `F`에서는 헤더가 `F-1`의 실행 후 state root를 담고, `F+1`부터는 각 블록이 부모의 루트를 담습니다.\n\n효과:\n\n1. 빌더는 후보마다가 아니라 슬롯마다(이전 블록에 대한) state root 하나만 계산하면 됩니다.\n2. 검증자는 블록을 실행한 뒤 그 루트를 기다리지 않고 attest할 수 있습니다.\n3. 블록 `n`의 루트 계산은 블록이 도착하자마자 시작할 수 있고, 블록 `n`의 액세스 리스트로 병렬화해 블록 `n+1`에 맞춰 끝낼 수 있습니다.\n\n## 샘플 코드\n\nexecution-spec 스타일 의사 코드로 본 핵심 변경:\n\n```python\ndef validate_header(chain, header):\n    # Delayed: this header commits to the PARENT's post-state.\n    if header.state_root != chain.last_computed_state_root:\n        raise InvalidBlock\n    # ... other checks unchanged\n\ndef state_transition(chain, block):\n    validate_header(chain, block.header)\n    out = apply_body(block_env, block.transactions, block.withdrawals)\n    if out.block_gas_used != block.header.gas_used:\n        raise InvalidBlock\n    # receipts, logs bloom, requests ... still validated as before\n\n    # Computed off the critical path; checked by the NEXT block.\n    chain.last_computed_state_root = state_root(block_env.state)\n    chain.blocks.append(block)\n```\n\n## 알아둘 점\n\n- 상태: **Draft**. 하드포크가 필요하며, 업그레이드하지 않은 클라이언트는 새 블록을 거부합니다.\n- 라이트 클라이언트와 state proof를 검증하는 모든 사람은 슬롯 하나만큼의 지연을 겪습니다. 블록 `n`의 결과에 대한 증명에는 블록 `n+1`의 헤더가 필요합니다.\n- 클라이언트는 블록 `n`의 실행 전 상태를 그 루트가 다음 블록에 포함될 때까지 보관해야 하며, 리오그 중에는 새 체인을 따라 `last_computed_state_root`를 다시 계산해야 합니다.\n- ePBS 페이로드 엔벨로프에 있는 합의 계층의 state root는 영향을 받지 않습니다. 바뀌는 것은 실행 헤더뿐입니다.\n- [EIP-7886](/eip-7886/)(Delayed execution)은 블록 검증과 실행을 분리하는 관련 아이디어를 탐구합니다.\n"},"zh":{"lang":"zh","tldr":"让每个区块头携带上一个区块的状态根而不是自身的状态根，把昂贵的状态根计算从构建者和见证者的关键路径上移除。","tags":["consensus","state-root","performance","scaling","core"],"related":[7732,7928,7886],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7862/","markdown":"## 它解决什么问题？\n\n每个以太坊区块头都包含 `state_root`，即区块执行后所有账户的 Merkle-Patricia 根。计算它需要对每条被触及的 trie 路径做哈希，这是生成和验证区块时最慢的步骤之一。\n\n这项成本落在了最糟糕的位置：\n\n- **构建者**要为 MEV 拍卖期间尝试的每一个候选区块重新计算根，每个 slot 可能多达数千次。\n- **验证者**在重新计算并检查区块的根之前，无法证明该区块有效。\n\n随着 gas 上限提高、ePBS（[EIP-7732](/eip-7732/)）使时间更加紧张，这会成为瓶颈。[EIP-7928](/eip-7928/) 的区块级访问列表有助于并行化执行，但对正在构建的当前区块的根没有帮助。\n\n## 它如何运作\n\nEIP-7862 把根移位一个区块。不新增区块头字段；只改变 `state_root` 的含义：\n\n- 区块 `n` 的区块头包含**区块 `n-1` 的执行后状态根**，也就是区块 `n` 的执行前状态。\n- 客户端维护一个 `last_computed_state_root`。区块头验证会检查 `header.state_root == last_computed_state_root`。\n- 执行完区块 `n` 之后，客户端计算其执行后状态根并存储起来，以便与区块 `n+1` 进行核对。\n- 在分叉区块 `F` 处，区块头携带 `F-1` 的执行后状态根；从 `F+1` 起，每个区块携带其父区块的状态根。\n\n效果：\n\n1. 构建者每个 slot 只需计算一个状态根（针对上一个区块），而不是每个候选区块一个。\n2. 验证者执行完区块后就可以见证，无需等待其状态根。\n3. 区块 `n` 的状态根计算在区块到达时即可开始，借助区块 `n` 的访问列表实现并行，并在区块 `n+1` 到来之前完成。\n\n## 示例代码\n\n以 execution-spec 风格的伪代码表示的核心改动：\n\n```python\ndef validate_header(chain, header):\n    # Delayed: this header commits to the PARENT's post-state.\n    if header.state_root != chain.last_computed_state_root:\n        raise InvalidBlock\n    # ... other checks unchanged\n\ndef state_transition(chain, block):\n    validate_header(chain, block.header)\n    out = apply_body(block_env, block.transactions, block.withdrawals)\n    if out.block_gas_used != block.header.gas_used:\n        raise InvalidBlock\n    # receipts, logs bloom, requests ... still validated as before\n\n    # Computed off the critical path; checked by the NEXT block.\n    chain.last_computed_state_root = state_root(block_env.state)\n    chain.blocks.append(block)\n```\n\n## 需要注意\n\n- 状态：**Draft**。它需要一次硬分叉；未升级的客户端会拒绝新区块。\n- 轻客户端以及任何验证状态证明的人会多出一个 slot 的延迟：关于区块 `n` 结果的证明需要区块 `n+1` 的区块头。\n- 客户端必须保留区块 `n` 的执行前状态，直到其根被包含进下一个区块，并且在重组期间要沿着新链重新计算 `last_computed_state_root`。\n- ePBS 载荷信封中的共识层状态根不受影响；只有执行区块头发生变化。\n- [EIP-7886](/eip-7886/)（Delayed execution）探索了一个相关的想法，即把区块验证与执行分离。\n"}}}
