{"eip":8296,"title":"Fixed-Cutoff State Tiering","description":"Surcharges writes to state unmutated since a fixed cutoff block","authors":["Wei Han Ng (@weiihann)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-06-10","requires":[2929,7702,7825,8037,8038,8188],"discussionsTo":"https://ethereum-magicians.org/t/eip-8296-fixed-cutoff-state-tiering/28772","repo":"EIPs","label":"EIP-8296","officialUrl":"https://eips.ethereum.org/EIPS/eip-8296","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8296.md","url":"https://eips.huatuo.xyz/eip-8296/","tldr":{"en":"Picks one cutoff block and charges extra gas for writing to any account or storage slot not modified since then, so long-dormant state can live in cheap cold storage without being deleted or needing a resurrection mechanism.","ja":"カットオフとなるブロックを 1 つ選び、それ以降に変更されていないアカウントやストレージスロットへの書き込みに追加のガスを課す。長期間休眠した状態を、削除や復活の仕組みを必要とせずに、安価なコールドストレージに置けるようにする。","ko":"하나의 기준(cutoff) 블록을 정하고, 그 이후 수정되지 않은 계정이나 스토리지 슬롯에 쓰기를 할 때 추가 gas를 부과한다. 오래 휴면 중인 상태를 삭제하거나 부활 메커니즘 없이도 저렴한 콜드 스토리지에 둘 수 있게 한다.","zh":"选定一个截止区块，对自那以后未被修改过的任何账户或存储槽的写入额外收取 gas，使长期休眠的状态可以放在廉价的冷存储中，而无需被删除，也不需要复活机制。"},"tags":["core","gas","state","state-expiry","pricing"],"explainers":{"en":{"lang":"en","tldr":"Picks one cutoff block and charges extra gas for writing to any account or storage slot not modified since then, so long-dormant state can live in cheap cold storage without being deleted or needing a resurrection mechanism.","tags":["core","gas","state","state-expiry","pricing"],"related":[8188,8037,8038,2929,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8296/","markdown":"## What problem does it solve?\n\nMost of Ethereum's state is cold: written once and never touched again. Yet nodes keep it in the same working database as busy state, and writing to a long-dormant slot costs exactly the same as writing to one updated a moment ago. Full \"state expiry\" schemes would delete old state, but they bring hard problems: witnesses to revive expired data and conflicts when it is resurrected.\n\nEIP-8296 takes a simpler path. It never removes anything from the state trie; it just makes reviving old state for writing cost more. That lets clients move the dormant set out of their hot database (for example into shared, immutable files) while keeping it fully provable.\n\n## How it works\n\n- **One cutoff.** Social consensus picks a `CUTOFF_BLOCK`. Using the `last_written_block` field from [EIP-8188](/eip-8188/), any account or slot last written before the cutoff is **Inactive**; everything else is **Active**.\n- **Write surcharge.** Each time an operation modifies an existing Inactive leaf, it pays `INACTIVE_ACCOUNT_WRITE_SURCHARGE` or `INACTIVE_STORAGE_WRITE_SURCHARGE` on top of normal gas (from [EIP-8038](/eip-8038/) / [EIP-8037](/eip-8037/)). The write then marks the leaf Active, so it is charged at most once per block and never again under this EIP.\n- **What counts.** Changing an existing slot surcharges the slot and its account (because `storageRoot` changes). Value transfers surcharge sender and receiver; nonce bumps, `CREATE` (the creator) and [EIP-7702](/eip-7702/) authorizations surcharge the affected account. Brand-new accounts, slots and code are never surcharged. Reads are never surcharged.\n- **Regular gas, not state gas.** The surcharge is I/O cost: it is not refunded, it stays consumed even if the frame reverts, and it counts toward the [EIP-7825](/eip-7825/) per-transaction cap.\n- **Separate from warm/cold.** [EIP-2929](/eip-2929/)'s warm/cold access pricing still applies as before; the Active/Inactive tier is an extra, write-only dimension.\n- **Recommended, not consensus:** clients should agree on a shared, self-verifying file format for the Inactive set, distributed like era files for block history.\n\n## Sample code\n\nPricing an `SSTORE` that changes an existing slot (Python-style pseudocode; surcharge values are still TBD):\n\n```python\ndef inactive(leaf, CUTOFF_BLOCK):\n    return leaf.last_written_block \u003c CUTOFF_BLOCK   # tier read *before* the write\n\ndef sstore_surcharge(account, slot, new_value, block_number):\n    extra = 0\n    slot_exists = slot.value != 0\n    changed = slot.value != new_value\n    if changed:\n        if slot_exists and new_value != 0 and inactive(slot, CUTOFF_BLOCK):\n            extra += INACTIVE_STORAGE_WRITE_SURCHARGE     # existing slot modified\n        if inactive(account, CUTOFF_BLOCK):\n            extra += INACTIVE_ACCOUNT_WRITE_SURCHARGE     # storageRoot cascade\n        # EIP-8188 then sets last_written_block = block_number on both\n    return extra   # added to normal SSTORE gas, non-refundable\n```\n\n## Things to know\n\n- Status: **Draft**. The cutoff block and both surcharge amounts are TBD, and test cases are not yet written.\n- Depends on EIP-8188 and must activate at or after it, with the cutoff above EIP-8188's activation block.\n- A fixed cutoff never re-ages state: once something is written it stays Active until a future fork moves the cutoff forward. The spec flags this monotonic growth as the main weakness compared with a rolling-period design.\n- \"Inactive\" means not *written* recently; it can still be read every block. Clients that move Inactive data to slow storage must consider read frequency to avoid DoS.\n- Wallets and `eth_estimateGas` would need to include the surcharge when a transaction touches Inactive state.\n"},"ja":{"lang":"ja","tldr":"カットオフとなるブロックを 1 つ選び、それ以降に変更されていないアカウントやストレージスロットへの書き込みに追加のガスを課す。長期間休眠した状態を、削除や復活の仕組みを必要とせずに、安価なコールドストレージに置けるようにする。","tags":["core","gas","state","state-expiry","pricing"],"related":[8188,8037,8038,2929,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8296/","markdown":"## 何を解決するのか\n\nEthereum の状態のほとんどはコールドです。一度書き込まれたら二度と触れられません。それでもノードは、それを活発な状態と同じ作業用データベースに保持しており、長期間休眠したスロットへの書き込みは、たった今更新されたスロットへの書き込みとまったく同じコストです。本格的な「ステートエクスパイリー」の方式は古い状態を削除しますが、期限切れのデータを復活させるための証人（witness）や、復活の際の衝突といった難しい問題を伴います。\n\nEIP-8296 はもっと単純な道を取ります。状態トライからは何も取り除かず、古い状態を書き込みのために復活させるコストを高くするだけです。これにより、クライアントは休眠しているセットを（たとえば共有の不変ファイルとして）ホットなデータベースの外に移しつつ、完全に証明可能なままにしておけます。\n\n## 仕組み\n\n- **1 つのカットオフ。** ソーシャルコンセンサスで `CUTOFF_BLOCK` を選びます。[EIP-8188](/eip-8188/) の `last_written_block` フィールドを使い、カットオフより前に最後に書き込まれたアカウントまたはスロットは **Inactive**、それ以外はすべて **Active** です。\n- **書き込みの加算料金。** 操作が既存の Inactive なリーフを変更するたびに、通常のガス（[EIP-8038](/eip-8038/) / [EIP-8037](/eip-8037/) のもの）に加えて、`INACTIVE_ACCOUNT_WRITE_SURCHARGE` または `INACTIVE_STORAGE_WRITE_SURCHARGE` を支払います。書き込みによってそのリーフは Active になるため、課金されるのはブロックあたり最大 1 回で、この EIP の下で再び課金されることはありません。\n- **対象となるもの。** 既存のスロットを変更すると、そのスロットとそのアカウント（`storageRoot` が変わるため）に加算料金が課されます。価値の送金は送信者と受信者に、nonce のインクリメント、`CREATE`（作成者）、[EIP-7702](/eip-7702/) の認可は、影響を受けるアカウントに課されます。まったく新しいアカウント、スロット、コードには決して課されません。読み取りにも決して課されません。\n- **状態ガスではなく通常のガス。** 加算料金は I/O のコストです。返金されず、フレームがリバートしても消費されたままで、[EIP-7825](/eip-7825/) のトランザクションごとの上限にも算入されます。\n- **ウォーム/コールドとは別。** [EIP-2929](/eip-2929/) のウォーム/コールドのアクセス価格は従来どおり適用されます。Active/Inactive の階層は、書き込み専用の追加の次元です。\n- **推奨であり、コンセンサスではありません:** クライアントは、ブロック履歴の era ファイルのように配布される、Inactive セット用の共有された自己検証可能なファイルフォーマットに合意すべきです。\n\n## サンプルコード\n\n既存のスロットを変更する `SSTORE` の価格設定（Python 風の擬似コード。加算料金の値はまだ TBD）:\n\n```python\ndef inactive(leaf, CUTOFF_BLOCK):\n    return leaf.last_written_block \u003c CUTOFF_BLOCK   # tier read *before* the write\n\ndef sstore_surcharge(account, slot, new_value, block_number):\n    extra = 0\n    slot_exists = slot.value != 0\n    changed = slot.value != new_value\n    if changed:\n        if slot_exists and new_value != 0 and inactive(slot, CUTOFF_BLOCK):\n            extra += INACTIVE_STORAGE_WRITE_SURCHARGE     # existing slot modified\n        if inactive(account, CUTOFF_BLOCK):\n            extra += INACTIVE_ACCOUNT_WRITE_SURCHARGE     # storageRoot cascade\n        # EIP-8188 then sets last_written_block = block_number on both\n    return extra   # added to normal SSTORE gas, non-refundable\n```\n\n## 知っておくべきこと\n\n- ステータス: **Draft**。カットオフブロックと 2 つの加算料金の額は TBD で、テストケースもまだ書かれていません。\n- EIP-8188 に依存し、それと同時かそれ以降に有効化しなければならず、カットオフは EIP-8188 の有効化ブロックより後でなければなりません。\n- 固定のカットオフは状態を再び古くすることがありません。いったん書き込まれたものは、将来のフォークでカットオフが先に進められるまで Active のままです。仕様は、このただ増えていく性質を、ローリング期間の設計と比べた主な弱点として指摘しています。\n- 「Inactive」は最近*書き込まれていない*ことを意味するだけで、毎ブロック読み取られている可能性もあります。Inactive なデータを低速なストレージに移すクライアントは、DoS を避けるため、読み取り頻度を考慮しなければなりません。\n- トランザクションが Inactive な状態に触れる場合、ウォレットと `eth_estimateGas` は加算料金を含める必要があります。\n"},"ko":{"lang":"ko","tldr":"하나의 기준(cutoff) 블록을 정하고, 그 이후 수정되지 않은 계정이나 스토리지 슬롯에 쓰기를 할 때 추가 gas를 부과한다. 오래 휴면 중인 상태를 삭제하거나 부활 메커니즘 없이도 저렴한 콜드 스토리지에 둘 수 있게 한다.","tags":["core","gas","state","state-expiry","pricing"],"related":[8188,8037,8038,2929,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8296/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움 상태의 대부분은 차갑습니다. 한 번 쓰이고 다시는 건드려지지 않습니다. 그런데도 노드는 이를 바쁜 상태와 같은 작업 데이터베이스에 보관하고, 오래 휴면 중인 슬롯에 쓰는 비용은 방금 업데이트된 슬롯에 쓰는 비용과 똑같습니다. 완전한 \"상태 만료(state expiry)\" 방식은 오래된 상태를 삭제하지만, 만료된 데이터를 되살리기 위한 증인(witness)과 부활 시의 충돌 같은 어려운 문제가 따릅니다.\n\nEIP-8296은 더 단순한 길을 택합니다. 상태 트라이에서 아무것도 제거하지 않고, 오래된 상태를 쓰기 위해 되살리는 비용만 더 비싸게 만듭니다. 그러면 클라이언트는 휴면 집합을 뜨거운 데이터베이스 밖으로(예: 공유되는 불변 파일로) 옮기면서도 완전히 증명 가능한 상태를 유지할 수 있습니다.\n\n## 어떻게 동작하나요?\n\n- **하나의 기준.** 사회적 합의로 `CUTOFF_BLOCK`을 정합니다. [EIP-8188](/eip-8188/)의 `last_written_block` 필드를 이용해, 기준 이전에 마지막으로 쓰인 계정이나 슬롯은 **Inactive**, 그 밖의 모든 것은 **Active**입니다.\n- **쓰기 추가 요금.** 연산이 기존 Inactive 리프를 수정할 때마다 일반 gas([EIP-8038](/eip-8038/) / [EIP-8037](/eip-8037/)의 것)에 더해 `INACTIVE_ACCOUNT_WRITE_SURCHARGE` 또는 `INACTIVE_STORAGE_WRITE_SURCHARGE`를 냅니다. 쓰기가 일어나면 그 리프는 Active가 되므로 블록당 최대 한 번만 부과되고, 이 EIP에서는 다시 부과되지 않습니다.\n- **해당하는 경우.** 기존 슬롯을 바꾸면 그 슬롯과 해당 계정(`storageRoot`가 바뀌므로)에 추가 요금이 붙습니다. 값 전송은 송신자와 수신자에게, nonce 증가, `CREATE`(생성자), [EIP-7702](/eip-7702/) 인가는 영향을 받는 계정에 추가 요금이 붙습니다. 완전히 새로운 계정, 슬롯, 코드에는 절대 부과되지 않습니다. 읽기에도 절대 부과되지 않습니다.\n- **상태 gas가 아니라 일반 gas.** 추가 요금은 I/O 비용입니다. 환급되지 않고, 프레임이 리버트되어도 소모된 채로 남으며, [EIP-7825](/eip-7825/)의 트랜잭션당 상한에도 포함됩니다.\n- **워밍/콜드와는 별개.** [EIP-2929](/eip-2929/)의 워밍/콜드 접근 가격은 이전처럼 그대로 적용되며, Active/Inactive 계층은 쓰기에만 적용되는 추가 차원입니다.\n- **권장 사항이며 합의 사항은 아님:** 클라이언트는 블록 히스토리의 era 파일처럼 배포되는, Inactive 집합용 공유되는 자체 검증 가능한 파일 형식에 합의해야 합니다.\n\n## 샘플 코드\n\n기존 슬롯을 바꾸는 `SSTORE`의 가격 책정(Python 스타일 의사 코드, 추가 요금 값은 아직 TBD):\n\n```python\ndef inactive(leaf, CUTOFF_BLOCK):\n    return leaf.last_written_block \u003c CUTOFF_BLOCK   # tier read *before* the write\n\ndef sstore_surcharge(account, slot, new_value, block_number):\n    extra = 0\n    slot_exists = slot.value != 0\n    changed = slot.value != new_value\n    if changed:\n        if slot_exists and new_value != 0 and inactive(slot, CUTOFF_BLOCK):\n            extra += INACTIVE_STORAGE_WRITE_SURCHARGE     # existing slot modified\n        if inactive(account, CUTOFF_BLOCK):\n            extra += INACTIVE_ACCOUNT_WRITE_SURCHARGE     # storageRoot cascade\n        # EIP-8188 then sets last_written_block = block_number on both\n    return extra   # added to normal SSTORE gas, non-refundable\n```\n\n## 알아둘 점\n\n- 상태: **Draft**. 기준 블록과 두 추가 요금 금액은 TBD이며, 테스트 케이스도 아직 작성되지 않았습니다.\n- EIP-8188에 의존하며 그것과 같거나 그 이후에 활성화되어야 하고, 기준은 EIP-8188의 활성화 블록보다 위에 있어야 합니다.\n- 고정된 기준은 상태를 다시 오래된 것으로 만들지 않습니다. 한 번 쓰인 것은 이후 포크가 기준을 앞으로 옮길 때까지 Active로 남습니다. 스펙은 이 단조 증가를 롤링 기간 방식에 비해 주된 약점으로 짚습니다.\n- \"Inactive\"는 최근에 *쓰이지* 않았다는 뜻일 뿐, 매 블록 읽힐 수는 있습니다. Inactive 데이터를 느린 스토리지로 옮기는 클라이언트는 DoS를 피하기 위해 읽기 빈도를 고려해야 합니다.\n- 트랜잭션이 Inactive 상태를 건드릴 때는 지갑과 `eth_estimateGas`가 추가 요금을 포함해야 합니다.\n"},"zh":{"lang":"zh","tldr":"选定一个截止区块，对自那以后未被修改过的任何账户或存储槽的写入额外收取 gas，使长期休眠的状态可以放在廉价的冷存储中，而无需被删除，也不需要复活机制。","tags":["core","gas","state","state-expiry","pricing"],"related":[8188,8037,8038,2929,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8296/","markdown":"## 它解决什么问题？\n\n以太坊的大部分状态是冷的：写入一次后再也没被碰过。然而节点却把它和繁忙的状态放在同一个工作数据库中，写入一个长期休眠的存储槽的成本，与写入一个刚刚更新过的存储槽完全相同。完整的“状态过期（state expiry）”方案会删除旧状态，但带来了棘手的问题：为复活过期数据所需的 witness，以及复活时的冲突。\n\nEIP-8296 走了一条更简单的路。它从不从状态 trie 中移除任何东西；只是让为写入而复活旧状态的成本更高。这让客户端可以把休眠集合移出热数据库（例如放入共享的、不可变的文件中），同时保持其完全可证明。\n\n## 它如何运作\n\n- **一个截止点。** 由社会共识选定一个 `CUTOFF_BLOCK`。借助 [EIP-8188](/eip-8188/) 的 `last_written_block` 字段，任何在截止点之前最后一次被写入的账户或存储槽都是 **Inactive**；其余的都是 **Active**。\n- **写入附加费。** 每当一个操作修改现有的 Inactive 叶子时，除了正常的 gas（来自 [EIP-8038](/eip-8038/) / [EIP-8037](/eip-8037/)）之外，还要支付 `INACTIVE_ACCOUNT_WRITE_SURCHARGE` 或 `INACTIVE_STORAGE_WRITE_SURCHARGE`。该写入随后会把这个叶子标记为 Active，因此每个区块最多收取一次，并且在该 EIP 下不会再次收取。\n- **哪些情况计入。** 修改现有存储槽会对该存储槽及其账户收取附加费（因为 `storageRoot` 会变化）。价值转移对发送方和接收方收取；nonce 递增、`CREATE`（创建者）和 [EIP-7702](/eip-7702/) 授权，对受影响的账户收取。全新的账户、存储槽和代码从不收取附加费。读取也从不收取。\n- **普通 gas，而不是状态 gas。** 附加费是 I/O 成本：不予退还，即使帧回滚也仍被消耗，并且计入 [EIP-7825](/eip-7825/) 的单笔交易上限。\n- **与冷热访问分开。** [EIP-2929](/eip-2929/) 的冷热访问定价仍照旧适用；Active/Inactive 层级是额外的、仅针对写入的维度。\n- **建议项，而非共识：** 客户端应就 Inactive 集合约定一种共享的、可自我验证的文件格式，像区块历史的 era 文件那样分发。\n\n## 示例代码\n\n为修改现有存储槽的 `SSTORE` 定价（Python 风格伪代码；附加费数值仍为 TBD）：\n\n```python\ndef inactive(leaf, CUTOFF_BLOCK):\n    return leaf.last_written_block \u003c CUTOFF_BLOCK   # tier read *before* the write\n\ndef sstore_surcharge(account, slot, new_value, block_number):\n    extra = 0\n    slot_exists = slot.value != 0\n    changed = slot.value != new_value\n    if changed:\n        if slot_exists and new_value != 0 and inactive(slot, CUTOFF_BLOCK):\n            extra += INACTIVE_STORAGE_WRITE_SURCHARGE     # existing slot modified\n        if inactive(account, CUTOFF_BLOCK):\n            extra += INACTIVE_ACCOUNT_WRITE_SURCHARGE     # storageRoot cascade\n        # EIP-8188 then sets last_written_block = block_number on both\n    return extra   # added to normal SSTORE gas, non-refundable\n```\n\n## 需要注意\n\n- 状态：**Draft**。截止区块和两项附加费的数额都是 TBD，测试用例也尚未编写。\n- 依赖 EIP-8188，必须在其激活时或之后激活，并且截止点要高于 EIP-8188 的激活区块。\n- 固定的截止点永远不会让状态重新变旧：一旦某项被写入，它就保持 Active，直到未来的某次分叉把截止点向前推。规范把这种单调增长指出为与滚动周期设计相比的主要弱点。\n- “Inactive”指的是最近没有被*写入*；它仍然可能每个区块都被读取。把 Inactive 数据移到慢速存储的客户端，必须考虑读取频率以避免 DoS。\n- 当交易触及 Inactive 状态时，钱包和 `eth_estimateGas` 需要把附加费算进去。\n"}}}
