{"eip":7886,"title":"Delayed execution","description":"Separate block validation from execution","authors":["Francesco D'Amato (@fradamt)","Toni Wahrstätter (@nerolation)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2025-02-18","requires":[1559,2930,4844,7623,7702],"discussionsTo":"https://ethereum-magicians.org/t/eip-7886-delayed-execution/22890","repo":"EIPs","label":"EIP-7886","officialUrl":"https://eips.ethereum.org/EIPS/eip-7886","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7886.md","url":"https://eips.huatuo.xyz/eip-7886/","tldr":{"en":"A stagnant proposal to let validators attest to an execution block before running its transactions, by checking only cheap static rules and deferring the execution results to the next block.","ja":"検証者が、トランザクションを実行する前に、軽量な静的ルールだけを確認し、実行結果は次のブロックに先送りすることで、実行ブロックを attest できるようにする、停滞中の提案。","ko":"검증자가 트랜잭션을 실행하기 전에 값싼 정적 규칙만 확인해 실행 블록을 증명(attest)하고, 실행 결과는 다음 블록으로 미루게 하자는, 정체된 제안.","zh":"一项已停滞的提案：让验证者在运行区块中的交易之前就对执行区块作出证明，只检查廉价的静态规则，把执行结果推迟到下一个区块。"},"tags":["core","consensus","execution","scaling","gas"],"explainers":{"en":{"lang":"en","tldr":"A stagnant proposal to let validators attest to an execution block before running its transactions, by checking only cheap static rules and deferring the execution results to the next block.","tags":["core","consensus","execution","scaling","gas"],"related":[7623,7702,4844,1559,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7886/","markdown":"## What problem does it solve?\n\nToday a validator must fully execute every transaction in a block before it can attest that the block is valid. Execution sits on the critical path of each slot: attesters wait for it, and that waiting time caps how big blocks can safely get.\n\nEIP-7886 proposes **delayed execution**. A block becomes valid or invalid based on checks that only need the *previous* state, not the result of running the block. Attesters can vote early in the slot, and execution can happen afterwards. The authors argue this frees up time that could support much higher gas limits.\n\n## How it works\n\n**Header carries the parent's results.** Instead of committing to its own post-state, receipts and logs, a block header commits to:\n\n- `pre_state_root`: the state *before* this block's transactions (i.e. after the parent executed);\n- the parent's transactions root, receipts root, logs bloom and requests hash;\n- `parent_execution_reverted`: whether the parent's execution was thrown away.\n\nSo each block's execution outputs are only checked one block later.\n\n**Static validation (no execution).** A node checks signatures, transaction types and fee fields; that each sender is an EOA (or an [EIP-7702](/eip-7702/) delegated account); that nonces are sequential; and that each sender can afford the **maximum** possible fee (`gas × effective price + blob fees`) plus `value`. The total inclusion gas (the larger of intrinsic gas and the [EIP-7623](/eip-7623/) calldata floor) must not exceed the header's declared `gas_used`, and blob gas must match exactly.\n\n**Execution with a block-level snapshot.** Senders are pre-charged their maximum fees, then transactions run. If the real gas used differs from the declared `gas_used`, or the block gas limit would be exceeded, the whole payload is **reverted**: state rolls back to the snapshot, receipts and logs are emptied, and [EIP-7685](/eip-7685/) requests are skipped. The block itself stays in the chain; only its execution is discarded.\n\n**Fee market.** If a parent's execution was reverted, the next block's base fee is computed as if the parent used zero gas.\n\n## Sample code\n\nSimplified static check, adapted from the spec's pseudocode:\n\n```python\ndef validate_block(chain, block):\n    h = block.header\n    # parent's deferred outputs must match what we computed last block\n    assert h.pre_state_root == state_root(chain.state)\n    assert h.parent_receipt_root == chain.last_receipt_root\n    assert h.parent_execution_reverted == chain.last_execution_reverted\n\n    balances, nonces, inclusion_gas = {}, {}, 0\n    for tx in block.transactions:\n        sender = recover_sender(chain.chain_id, tx)\n        if sender not in balances:\n            acct = get_account(chain.state, sender)\n            assert acct.code == b\"\" or is_valid_delegation(acct.code)  # EOA only\n            balances[sender], nonces[sender] = acct.balance, acct.nonce\n        max_fee = tx.gas * effective_gas_price(tx, h.base_fee_per_gas) + blob_fee(tx)\n        assert balances[sender] \u003e= max_fee + tx.value\n        assert nonces[sender] == tx.nonce\n        balances[sender] -= max_fee + tx.value\n        nonces[sender] += 1\n        inclusion_gas += max(intrinsic_gas(tx), calldata_floor(tx))\n    assert inclusion_gas \u003c= h.gas_used\n```\n\n## Things to know\n\n- **Status: Stagnant.** It has not been scheduled for any fork and needs a hard fork to activate. Related scaling work on separating execution from consensus includes [EIP-7732](/eip-7732/) (ePBS).\n- Transactions must come from EOAs (or 7702-delegated accounts) because a contract cannot be statically checked for balance and nonce.\n- A proposer who declares the wrong `gas_used` loses all execution-layer rewards for that block, which is the main incentive to declare honestly.\n- Even for reverted blocks, nodes must still store the transaction data (calldata, access lists, blobs). The spec acknowledges this as a cheap-data attack vector and argues it is uneconomical because the attacker forfeits block rewards.\n"},"ja":{"lang":"ja","tldr":"検証者が、トランザクションを実行する前に、軽量な静的ルールだけを確認し、実行結果は次のブロックに先送りすることで、実行ブロックを attest できるようにする、停滞中の提案。","tags":["core","consensus","execution","scaling","gas"],"related":[7623,7702,4844,1559,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7886/","markdown":"## 何を解決するのか\n\n現在、バリデーターはブロック内のすべてのトランザクションを完全に実行してからでないと、そのブロックが有効だと attest できません。実行は各スロットのクリティカルパス上にあります。attester はそれを待ち、その待ち時間がブロックを安全に大きくできる上限を決めています。\n\nEIP-7886 は**遅延実行**を提案します。ブロックの有効・無効は、ブロックを実行した結果ではなく、*前の*ステートだけで行えるチェックに基づいて決まります。attester はスロットの早い段階で投票でき、実行はその後で行えます。著者らは、これにより時間が空き、ガス上限をはるかに高くできる可能性があると主張しています。\n\n## 仕組み\n\n**ヘッダーが親の結果を持つ。** ブロックヘッダーは、自身の実行後のステート、レシート、ログにコミットする代わりに、次にコミットします。\n\n- `pre_state_root`: このブロックのトランザクション*より前*のステート（つまり親が実行された後のステート）\n- 親のトランザクションルート、レシートルート、ログブルーム、リクエストハッシュ\n- `parent_execution_reverted`: 親の実行が破棄されたかどうか\n\nしたがって、各ブロックの実行結果が検証されるのは 1 ブロック後です。\n\n**静的な検証（実行なし）。** ノードは次を確認します。署名、トランザクションタイプ、手数料フィールド。各送信者が EOA（または [EIP-7702](/eip-7702/) で委任されたアカウント）であること。nonce が連続していること。各送信者が、取りうる**最大**の手数料（`gas × effective price + blob fees`）に `value` を加えた額を支払えること。インクルージョンガスの合計（固有ガスと [EIP-7623](/eip-7623/) の calldata 下限のうち大きい方）が、ヘッダーで宣言された `gas_used` を超えてはならず、blob ガスは完全に一致しなければなりません。\n\n**ブロック単位のスナップショットを使った実行。** 送信者は先に最大手数料を引き落とされ、その後トランザクションが実行されます。実際に使われたガスが宣言された `gas_used` と異なる場合、またはブロックのガス上限を超えそうな場合、ペイロード全体が**巻き戻されます**。ステートはスナップショットに戻り、レシートとログは空になり、[EIP-7685](/eip-7685/) のリクエストはスキップされます。ブロック自体はチェーンに残り、破棄されるのはその実行だけです。\n\n**手数料市場。** 親の実行が巻き戻された場合、次のブロックのベースフィーは、親のガス使用量がゼロだったものとして計算されます。\n\n## サンプルコード\n\n仕様の擬似コードを基にした、簡略化した静的チェック:\n\n```python\ndef validate_block(chain, block):\n    h = block.header\n    # parent's deferred outputs must match what we computed last block\n    assert h.pre_state_root == state_root(chain.state)\n    assert h.parent_receipt_root == chain.last_receipt_root\n    assert h.parent_execution_reverted == chain.last_execution_reverted\n\n    balances, nonces, inclusion_gas = {}, {}, 0\n    for tx in block.transactions:\n        sender = recover_sender(chain.chain_id, tx)\n        if sender not in balances:\n            acct = get_account(chain.state, sender)\n            assert acct.code == b\"\" or is_valid_delegation(acct.code)  # EOA only\n            balances[sender], nonces[sender] = acct.balance, acct.nonce\n        max_fee = tx.gas * effective_gas_price(tx, h.base_fee_per_gas) + blob_fee(tx)\n        assert balances[sender] \u003e= max_fee + tx.value\n        assert nonces[sender] == tx.nonce\n        balances[sender] -= max_fee + tx.value\n        nonces[sender] += 1\n        inclusion_gas += max(intrinsic_gas(tx), calldata_floor(tx))\n    assert inclusion_gas \u003c= h.gas_used\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** どのフォークにも予定されておらず、有効にするにはハードフォークが必要です。実行とコンセンサスの分離に関する、関連するスケーリングの取り組みには [EIP-7732](/eip-7732/)（ePBS）があります。\n- トランザクションは EOA（または 7702 で委任されたアカウント）から来なければなりません。コントラクトは、残高と nonce を静的に検査できないためです。\n- 誤った `gas_used` を宣言したプロポーザーは、そのブロックの実行レイヤー報酬をすべて失います。これが正直に宣言する主なインセンティブです。\n- 巻き戻されたブロックであっても、ノードはトランザクションデータ（calldata、access list、blob）を保存しなければなりません。仕様はこれを安価なデータによる攻撃経路だと認めつつ、攻撃者がブロック報酬を失うため経済的に割に合わないと論じています。\n"},"ko":{"lang":"ko","tldr":"검증자가 트랜잭션을 실행하기 전에 값싼 정적 규칙만 확인해 실행 블록을 증명(attest)하고, 실행 결과는 다음 블록으로 미루게 하자는, 정체된 제안.","tags":["core","consensus","execution","scaling","gas"],"related":[7623,7702,4844,1559,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7886/","markdown":"## 어떤 문제를 해결하나요?\n\n오늘날 검증자는 블록의 모든 트랜잭션을 완전히 실행한 뒤에야 그 블록이 유효하다고 증명(attest)할 수 있습니다. 실행은 각 슬롯의 크리티컬 패스에 놓여 있습니다. attester는 그것을 기다려야 하고, 그 대기 시간이 블록을 안전하게 키울 수 있는 크기의 상한을 정합니다.\n\nEIP-7886은 **지연 실행**을 제안합니다. 블록의 유효 여부는 블록을 실행한 결과가 아니라 *이전* 상태만 있으면 되는 검사로 결정됩니다. attester는 슬롯 초반에 투표할 수 있고 실행은 그 이후에 일어날 수 있습니다. 저자들은 이렇게 하면 시간이 확보되어 훨씬 높은 가스 한도를 뒷받침할 수 있다고 주장합니다.\n\n## 어떻게 동작하나요?\n\n**헤더가 부모의 결과를 담습니다.** 블록 헤더는 자신의 실행 후 상태, 영수증, 로그를 커밋하는 대신 다음을 커밋합니다.\n\n- `pre_state_root`: 이 블록의 트랜잭션 *이전*의 상태(즉 부모가 실행된 뒤의 상태)\n- 부모의 트랜잭션 루트, 영수증 루트, 로그 블룸, 요청 해시\n- `parent_execution_reverted`: 부모의 실행이 폐기되었는지 여부\n\n따라서 각 블록의 실행 결과는 한 블록 뒤에야 검사됩니다.\n\n**정적 검증(실행 없음).** 노드는 서명, 트랜잭션 타입, 수수료 필드를 확인하고, 각 발신자가 EOA(또는 [EIP-7702](/eip-7702/)로 위임된 계정)인지, nonce가 순차적인지, 각 발신자가 가능한 **최대** 수수료(`gas × effective price + blob fees`)에 `value`를 더한 금액을 감당할 수 있는지 확인합니다. 포함 가스 총합(고유 가스와 [EIP-7623](/eip-7623/) calldata 하한 중 큰 값)은 헤더에 선언된 `gas_used`를 넘으면 안 되고, blob 가스는 정확히 일치해야 합니다.\n\n**블록 단위 스냅샷을 쓰는 실행.** 발신자에게 먼저 최대 수수료를 선차감한 뒤 트랜잭션을 실행합니다. 실제 사용된 가스가 선언된 `gas_used`와 다르거나 블록 가스 한도를 넘게 되면 페이로드 전체가 **되돌려집니다**. 상태는 스냅샷으로 롤백되고, 영수증과 로그는 비워지며, [EIP-7685](/eip-7685/) 요청은 건너뜁니다. 블록 자체는 체인에 남고 폐기되는 것은 그 실행뿐입니다.\n\n**수수료 시장.** 부모의 실행이 되돌려졌다면, 다음 블록의 기본 수수료는 부모가 가스를 0만큼 썼다고 가정하고 계산합니다.\n\n## 샘플 코드\n\n명세의 의사 코드를 바탕으로 단순화한 정적 검사:\n\n```python\ndef validate_block(chain, block):\n    h = block.header\n    # parent's deferred outputs must match what we computed last block\n    assert h.pre_state_root == state_root(chain.state)\n    assert h.parent_receipt_root == chain.last_receipt_root\n    assert h.parent_execution_reverted == chain.last_execution_reverted\n\n    balances, nonces, inclusion_gas = {}, {}, 0\n    for tx in block.transactions:\n        sender = recover_sender(chain.chain_id, tx)\n        if sender not in balances:\n            acct = get_account(chain.state, sender)\n            assert acct.code == b\"\" or is_valid_delegation(acct.code)  # EOA only\n            balances[sender], nonces[sender] = acct.balance, acct.nonce\n        max_fee = tx.gas * effective_gas_price(tx, h.base_fee_per_gas) + blob_fee(tx)\n        assert balances[sender] \u003e= max_fee + tx.value\n        assert nonces[sender] == tx.nonce\n        balances[sender] -= max_fee + tx.value\n        nonces[sender] += 1\n        inclusion_gas += max(intrinsic_gas(tx), calldata_floor(tx))\n    assert inclusion_gas \u003c= h.gas_used\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 어떤 포크에도 예정되어 있지 않으며 활성화하려면 하드포크가 필요합니다. 실행과 합의를 분리하는 관련 확장 작업으로는 [EIP-7732](/eip-7732/)(ePBS)가 있습니다.\n- 컨트랙트는 잔액과 nonce를 정적으로 검사할 수 없으므로, 트랜잭션은 EOA(또는 7702로 위임된 계정)에서 와야 합니다.\n- 잘못된 `gas_used`를 선언한 제안자는 해당 블록의 실행 계층 보상을 모두 잃으며, 이것이 정직하게 선언하게 하는 주된 유인입니다.\n- 되돌려진 블록이라도 노드는 트랜잭션 데이터(calldata, access list, blob)를 계속 저장해야 합니다. 명세는 이를 값싼 데이터 공격 경로로 인정하면서도, 공격자가 블록 보상을 포기하게 되므로 경제적이지 않다고 주장합니다.\n"},"zh":{"lang":"zh","tldr":"一项已停滞的提案：让验证者在运行区块中的交易之前就对执行区块作出证明，只检查廉价的静态规则，把执行结果推迟到下一个区块。","tags":["core","consensus","execution","scaling","gas"],"related":[7623,7702,4844,1559,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7886/","markdown":"## 它解决什么问题？\n\n如今验证者必须完整执行区块中的每笔交易，才能证明该区块有效。执行位于每个 slot 的关键路径上：证明者要等待它，而这段等待时间限制了区块能安全增长到多大。\n\nEIP-7886 提出**延迟执行**。区块的有效与否，取决于只需要*上一个*状态就能完成的检查，而不是运行该区块的结果。证明者可以在 slot 的早期投票，执行则在之后进行。作者认为这会腾出时间，可以支持高得多的 gas 上限。\n\n## 它如何运作\n\n**区块头携带父区块的结果。** 区块头不再承诺自己的执行后状态、收据和日志，而是承诺：\n\n- `pre_state_root`：本区块交易*之前*的状态（即父区块执行之后的状态）；\n- 父区块的交易根、收据根、日志布隆过滤器和请求哈希；\n- `parent_execution_reverted`：父区块的执行是否被丢弃。\n\n因此，每个区块的执行输出要晚一个区块才会被检查。\n\n**静态验证（不执行）。** 节点检查签名、交易类型和费用字段；每个发送者是否为 EOA（或经 [EIP-7702](/eip-7702/) 委托的账户）；nonce 是否连续；每个发送者是否付得起可能的**最大**费用（`gas × effective price + blob fees`）加上 `value`。纳入 gas 总量（固有 gas 与 [EIP-7623](/eip-7623/) calldata 下限中较大者）不得超过区块头声明的 `gas_used`，且 blob gas 必须完全匹配。\n\n**带区块级快照的执行。** 先向发送者预收取其最大费用，然后运行交易。如果实际使用的 gas 与声明的 `gas_used` 不同，或者会超过区块 gas 上限，整个载荷就会被**回滚**：状态回退到快照，收据和日志清空，[EIP-7685](/eip-7685/) 的请求被跳过。区块本身仍保留在链上；被丢弃的只是它的执行。\n\n**费用市场。** 如果某个父区块的执行被回滚，下一个区块的基础费用按照父区块使用了零 gas 来计算。\n\n## 示例代码\n\n简化的静态检查，改编自规范中的伪代码：\n\n```python\ndef validate_block(chain, block):\n    h = block.header\n    # parent's deferred outputs must match what we computed last block\n    assert h.pre_state_root == state_root(chain.state)\n    assert h.parent_receipt_root == chain.last_receipt_root\n    assert h.parent_execution_reverted == chain.last_execution_reverted\n\n    balances, nonces, inclusion_gas = {}, {}, 0\n    for tx in block.transactions:\n        sender = recover_sender(chain.chain_id, tx)\n        if sender not in balances:\n            acct = get_account(chain.state, sender)\n            assert acct.code == b\"\" or is_valid_delegation(acct.code)  # EOA only\n            balances[sender], nonces[sender] = acct.balance, acct.nonce\n        max_fee = tx.gas * effective_gas_price(tx, h.base_fee_per_gas) + blob_fee(tx)\n        assert balances[sender] \u003e= max_fee + tx.value\n        assert nonces[sender] == tx.nonce\n        balances[sender] -= max_fee + tx.value\n        nonces[sender] += 1\n        inclusion_gas += max(intrinsic_gas(tx), calldata_floor(tx))\n    assert inclusion_gas \u003c= h.gas_used\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 尚未被排入任何分叉，需要硬分叉才能激活。与分离执行和共识相关的扩容工作包括 [EIP-7732](/eip-7732/)（ePBS）。\n- 交易必须来自 EOA（或经 7702 委托的账户），因为合约无法被静态地检查余额和 nonce。\n- 声明了错误 `gas_used` 的提议者会失去该区块的全部执行层奖励，这是诚实声明的主要激励。\n- 即使对于被回滚的区块，节点仍必须存储交易数据（calldata、access list、blob）。规范承认这是一个廉价数据攻击的途径，并认为这并不划算，因为攻击者会丧失区块奖励。\n"}}}
