{"eip":8383,"title":"Reduce CL Block Retention Window","description":"Reduces the required beacon block retention window to 8192 epochs","authors":["Kevaundray Wedderburn (@kevaundray)"],"status":"Draft","type":"Standards Track","category":"Networking","created":"2026-08-17","discussionsTo":"https://ethereum-magicians.org/t/eip-8383-reduce-cl-block-retention-window/29449","repo":"EIPs","label":"EIP-8383","officialUrl":"https://eips.ethereum.org/EIPS/eip-8383","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8383.md","url":"https://eips.huatuo.xyz/eip-8383/","tldr":{"en":"Cuts how far back consensus clients must serve beacon blocks to peers, from 33,024 epochs (about five months) to 8,192 epochs (about 36 days), making checkpoint sync and storage much lighter.","ja":"コンセンサスクライアントがピアにビーコンブロックを提供しなければならない遡り期間を、33,024 エポック（約 5 か月）から 8,192 エポック（約 36 日）に短縮し、チェックポイント同期とストレージを大幅に軽くする。","ko":"합의 클라이언트가 피어에게 비콘 블록을 제공해야 하는 과거 범위를 33,024 에포크(약 5개월)에서 8,192 에포크(약 36일)로 줄여, 체크포인트 동기화와 스토리지를 훨씬 가볍게 만든다.","zh":"缩短共识客户端必须向对等节点提供信标区块的回溯范围，从 33,024 个 epoch（约五个月）缩短到 8,192 个 epoch（约 36 天），使检查点同步和存储轻得多。"},"tags":["consensus","networking","sync","storage","history"],"explainers":{"en":{"lang":"en","tldr":"Cuts how far back consensus clients must serve beacon blocks to peers, from 33,024 epochs (about five months) to 8,192 epochs (about 36 days), making checkpoint sync and storage much lighter.","tags":["consensus","networking","sync","storage","history"],"related":[4444],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8383/","markdown":"## What problem does it solve?\n\nConsensus-layer (CL) clients are required to keep recent signed beacon blocks and serve them to peers through the `BeaconBlocksByRange` and `BeaconBlocksByRoot` requests. The required window, `MIN_EPOCHS_FOR_BLOCK_REQUESTS`, is currently 33,024 epochs, which is roughly five months.\n\nThat number comes from a worst-case weak-subjectivity calculation that uses a maximal safety decay (`MAX_SAFETY_DECAY = 100`). In practice, checkpoint sync is configured with `SAFETY_DECAY = 10`, and under current mainnet churn parameters that gives a weak-subjectivity bound of only about 3,532 epochs.\n\nThe mismatch has a real cost. A node that checkpoint-syncs from a state only hours old still has to *backfill* months of blocks before it meets the serving requirement. That costs download bandwidth, disk space, disk writes and time for the new node, and upload bandwidth for the peers serving it. Some CL clients also rebuild old execution payloads from the execution layer, so the CL window effectively sets a floor on how much history an execution client must keep.\n\n## How it works\n\nThe mainnet configuration changes to:\n\n```text\nMIN_EPOCHS_FOR_BLOCK_REQUESTS = 8192\n```\n\nand `compute_min_epochs_for_block_requests()` simply returns that constant instead of deriving the value from the weak-subjectivity formula. Every existing serving and backfill rule that uses the function picks up the new value.\n\nWhy 8,192? The smallest power of two above the current 3,532-epoch bound is 4,096; the EIP picks the next one up as a conservative first step. At 32 slots per epoch and 12 seconds per slot, 8,192 epochs is about 36.4 days.\n\nA fixed configured value (rather than one computed from live state) gives clients predictable pruning and backfill boundaries.\n\n## Sample code\n\nThe replacement function from the spec, plus the serving boundary it implies:\n\n```python\nMIN_EPOCHS_FOR_BLOCK_REQUESTS = 8192\n\ndef compute_min_epochs_for_block_requests() -\u003e Uint64:\n    return Uint64(MIN_EPOCHS_FOR_BLOCK_REQUESTS)\n\ndef oldest_epoch_to_serve(current_epoch: int) -\u003e int:\n    return max(0, current_epoch - compute_min_epochs_for_block_requests())\n\n# Spec test case: at epoch 500_000 a client MUST serve epochs 491_808..500_000.\nassert oldest_epoch_to_serve(500_000) == 491_808\n```\n\nA request for epoch 491,807 in that example may be answered with `ResourceUnavailable`, and the requesting peer must not penalize the server for it.\n\n## Things to know\n\n- **Status: Draft.** The value and rollout are still under discussion.\n- No hard fork is needed. It changes peer-serving expectations only, and clients may keep more history if they want. Execution-layer history expiry is covered separately by [EIP-4444](/eip-4444/).\n- During a mixed rollout, older clients may ask for blocks between 8,192 and 33,024 epochs old and get refused; since some nodes already do not serve history, this is expected to have no effect.\n- Security relies on an invariant: 8,192 epochs must stay above the maximum weak-subjectivity period. Spec tests must check this, and any future change to that bound must re-verify it.\n- For long periods of non-finality, the EIP recommends that clients keep all unfinalized blocks rather than relying on the retention window.\n"},"ja":{"lang":"ja","tldr":"コンセンサスクライアントがピアにビーコンブロックを提供しなければならない遡り期間を、33,024 エポック（約 5 か月）から 8,192 エポック（約 36 日）に短縮し、チェックポイント同期とストレージを大幅に軽くする。","tags":["consensus","networking","sync","storage","history"],"related":[4444],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8383/","markdown":"## 何を解決するのか\n\nコンセンサスレイヤー（CL）クライアントは、署名済みの直近のビーコンブロックを保持し、`BeaconBlocksByRange` と `BeaconBlocksByRoot` リクエストを通じてピアに提供することが求められています。必要なウィンドウ `MIN_EPOCHS_FOR_BLOCK_REQUESTS` は現在 33,024 エポックで、およそ 5 か月です。\n\nこの数字は、最大の安全性減衰（`MAX_SAFETY_DECAY = 100`）を用いた最悪ケースの weak subjectivity 計算に由来します。実際には、チェックポイント同期は `SAFETY_DECAY = 10` で設定されており、現在のメインネットのチャーンパラメータでは、weak subjectivity の上限はわずか約 3,532 エポックになります。\n\nこのミスマッチには実際のコストがあります。わずか数時間前のステートからチェックポイント同期するノードでも、提供の要件を満たすには数か月分のブロックを*バックフィル*しなければなりません。これは、新しいノードのダウンロード帯域幅、ディスク容量、ディスク書き込み、時間、そしてそれを提供するピアのアップロード帯域幅を消費します。また、一部の CL クライアントは実行レイヤーから古いエグゼキューションペイロードを再構築するため、CL のウィンドウは事実上、実行クライアントが保持すべき履歴の下限を決めています。\n\n## 仕組み\n\nメインネットの設定は次のように変わります。\n\n```text\nMIN_EPOCHS_FOR_BLOCK_REQUESTS = 8192\n```\n\nそして `compute_min_epochs_for_block_requests()` は、weak subjectivity の式から値を導出する代わりに、その定数を返すだけになります。この関数を使う既存の提供ルールとバックフィルのルールはすべて、新しい値を引き継ぎます。\n\nなぜ 8,192 なのか。現在の 3,532 エポックの上限を超える最小の 2 のべき乗は 4,096 です。この EIP は、保守的な第一歩として、その次のものを選んでいます。1 エポック 32 スロット、1 スロット 12 秒で、8,192 エポックは約 36.4 日です。\n\n（ライブのステートから計算するのではなく）固定の設定値にすることで、クライアントはプルーニングとバックフィルの境界を予測できます。\n\n## サンプルコード\n\n仕様にある置き換え後の関数と、それが意味する提供の境界:\n\n```python\nMIN_EPOCHS_FOR_BLOCK_REQUESTS = 8192\n\ndef compute_min_epochs_for_block_requests() -\u003e Uint64:\n    return Uint64(MIN_EPOCHS_FOR_BLOCK_REQUESTS)\n\ndef oldest_epoch_to_serve(current_epoch: int) -\u003e int:\n    return max(0, current_epoch - compute_min_epochs_for_block_requests())\n\n# Spec test case: at epoch 500_000 a client MUST serve epochs 491_808..500_000.\nassert oldest_epoch_to_serve(500_000) == 491_808\n```\n\nこの例でエポック 491,807 へのリクエストには `ResourceUnavailable` で応答してもよく、リクエストしたピアはそれを理由にサーバーにペナルティを与えてはなりません。\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** 値とロールアウトはまだ議論中です。\n- ハードフォークは不要です。変更されるのはピアへの提供に関する期待だけで、クライアントは望めばより多くの履歴を保持しても構いません。実行レイヤーの履歴の失効は、[EIP-4444](/eip-4444/) で別途扱われています。\n- 混在したロールアウトの間、古いクライアントは 8,192〜33,024 エポック前のブロックを要求して拒否されることがあります。すでに履歴を提供しないノードもあるため、影響はないと見込まれています。\n- セキュリティは不変条件に依存します。8,192 エポックは、weak subjectivity period の最大値を上回り続けなければなりません。仕様のテストでこれを確認する必要があり、その上限が将来変更される場合はいずれも再検証が必要です。\n- ファイナリティが長期間得られない場合、この EIP は、クライアントが保持ウィンドウに頼らず、未ファイナライズのブロックをすべて保持することを推奨しています。\n"},"ko":{"lang":"ko","tldr":"합의 클라이언트가 피어에게 비콘 블록을 제공해야 하는 과거 범위를 33,024 에포크(약 5개월)에서 8,192 에포크(약 36일)로 줄여, 체크포인트 동기화와 스토리지를 훨씬 가볍게 만든다.","tags":["consensus","networking","sync","storage","history"],"related":[4444],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8383/","markdown":"## 어떤 문제를 해결하나요?\n\n합의 계층(CL) 클라이언트는 최근의 서명된 비콘 블록을 보관하고 `BeaconBlocksByRange`와 `BeaconBlocksByRoot` 요청을 통해 피어에게 제공해야 합니다. 필요한 구간인 `MIN_EPOCHS_FOR_BLOCK_REQUESTS`는 현재 33,024 에포크로, 대략 5개월입니다.\n\n이 숫자는 최대 안전성 감쇠(`MAX_SAFETY_DECAY = 100`)를 사용하는 최악의 경우 weak subjectivity 계산에서 나옵니다. 실제로 체크포인트 동기화는 `SAFETY_DECAY = 10`으로 설정되며, 현재 메인넷 churn 파라미터에서는 weak subjectivity 한계가 약 3,532 에포크에 불과합니다.\n\n이 불일치에는 실제 비용이 있습니다. 불과 몇 시간 된 상태에서 체크포인트 동기화하는 노드도, 제공 요건을 충족하려면 수개월 분의 블록을 *백필(backfill)*해야 합니다. 이는 새 노드의 다운로드 대역폭, 디스크 공간, 디스크 쓰기, 시간을 소모하고, 이를 제공하는 피어의 업로드 대역폭도 소모합니다. 일부 CL 클라이언트는 실행 계층에서 오래된 실행 페이로드를 다시 만들기도 하므로, CL 구간은 사실상 실행 클라이언트가 보관해야 하는 이력의 하한을 정합니다.\n\n## 어떻게 동작하나요?\n\n메인넷 설정이 다음과 같이 바뀝니다.\n\n```text\nMIN_EPOCHS_FOR_BLOCK_REQUESTS = 8192\n```\n\n그리고 `compute_min_epochs_for_block_requests()`는 weak subjectivity 공식에서 값을 도출하는 대신 그 상수를 그대로 반환합니다. 이 함수를 사용하는 기존의 모든 제공 및 백필 규칙이 새 값을 따르게 됩니다.\n\n왜 8,192일까요? 현재 3,532 에포크 한계를 넘는 가장 작은 2의 거듭제곱은 4,096이며, 이 EIP는 보수적인 첫걸음으로 그다음 값을 택합니다. 에포크당 32 슬롯, 슬롯당 12초 기준으로 8,192 에포크는 약 36.4일입니다.\n\n(라이브 상태에서 계산하는 대신) 고정된 설정 값은 클라이언트에 예측 가능한 프루닝 및 백필 경계를 줍니다.\n\n## 샘플 코드\n\n명세의 대체 함수와, 그것이 함축하는 제공 경계:\n\n```python\nMIN_EPOCHS_FOR_BLOCK_REQUESTS = 8192\n\ndef compute_min_epochs_for_block_requests() -\u003e Uint64:\n    return Uint64(MIN_EPOCHS_FOR_BLOCK_REQUESTS)\n\ndef oldest_epoch_to_serve(current_epoch: int) -\u003e int:\n    return max(0, current_epoch - compute_min_epochs_for_block_requests())\n\n# Spec test case: at epoch 500_000 a client MUST serve epochs 491_808..500_000.\nassert oldest_epoch_to_serve(500_000) == 491_808\n```\n\n이 예에서 에포크 491,807에 대한 요청은 `ResourceUnavailable`로 응답해도 되며, 요청한 피어는 이를 이유로 서버에 불이익을 줘서는 안 됩니다.\n\n## 알아둘 점\n\n- **상태: Draft.** 값과 도입 방식은 아직 논의 중입니다.\n- 하드 포크는 필요 없습니다. 피어 제공에 대한 기대만 바뀌며, 클라이언트는 원하면 더 많은 이력을 유지해도 됩니다. 실행 계층의 이력 만료는 [EIP-4444](/eip-4444/)에서 별도로 다룹니다.\n- 혼합 도입 기간 동안 구버전 클라이언트가 8,192~33,024 에포크 전의 블록을 요청했다가 거절당할 수 있습니다. 이미 이력을 제공하지 않는 노드가 있으므로 영향은 없을 것으로 예상됩니다.\n- 보안은 불변 조건에 의존합니다. 8,192 에포크는 최대 weak subjectivity period보다 계속 커야 합니다. 명세 테스트가 이를 확인해야 하며, 그 한계에 대한 향후 변경은 모두 이를 다시 검증해야 합니다.\n- 파이널리티가 오래 이뤄지지 않는 기간에는, 이 EIP가 클라이언트에 보존 구간에 의존하지 말고 파이널라이즈되지 않은 모든 블록을 보관할 것을 권장합니다.\n"},"zh":{"lang":"zh","tldr":"缩短共识客户端必须向对等节点提供信标区块的回溯范围，从 33,024 个 epoch（约五个月）缩短到 8,192 个 epoch（约 36 天），使检查点同步和存储轻得多。","tags":["consensus","networking","sync","storage","history"],"related":[4444],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8383/","markdown":"## 它解决什么问题？\n\n共识层（CL）客户端被要求保留最近已签名的信标区块，并通过 `BeaconBlocksByRange` 和 `BeaconBlocksByRoot` 请求向对等节点提供。所需的窗口 `MIN_EPOCHS_FOR_BLOCK_REQUESTS` 目前是 33,024 个 epoch，大约五个月。\n\n这个数字来自使用最大安全衰减（`MAX_SAFETY_DECAY = 100`）的最坏情况弱主观性计算。实际上，检查点同步配置的是 `SAFETY_DECAY = 10`，在当前主网的 churn 参数下，这只给出约 3,532 个 epoch 的弱主观性上限。\n\n这种不匹配有实际代价。一个从仅有几小时的状态进行检查点同步的节点，仍然必须*回填*数月的区块才能满足提供服务的要求。这会耗费新节点的下载带宽、磁盘空间、磁盘写入和时间，以及为其提供服务的对等节点的上传带宽。一些 CL 客户端还会从执行层重建旧的执行载荷，所以 CL 的窗口实际上为执行客户端必须保留多少历史设定了下限。\n\n## 它如何运作\n\n主网配置改为：\n\n```text\nMIN_EPOCHS_FOR_BLOCK_REQUESTS = 8192\n```\n\n并且 `compute_min_epochs_for_block_requests()` 直接返回该常量，而不再从弱主观性公式推导该值。所有使用该函数的现有服务和回填规则都会采用新的值。\n\n为什么是 8,192？高于当前 3,532 个 epoch 上限的最小 2 的幂是 4,096；该 EIP 选择再往上的下一个，作为保守的第一步。按每个 epoch 32 个 slot、每个 slot 12 秒计算，8,192 个 epoch 约为 36.4 天。\n\n固定的配置值（而不是根据实时状态计算出来的值）能让客户端获得可预测的裁剪和回填边界。\n\n## 示例代码\n\n规范中的替代函数，以及它所隐含的服务边界：\n\n```python\nMIN_EPOCHS_FOR_BLOCK_REQUESTS = 8192\n\ndef compute_min_epochs_for_block_requests() -\u003e Uint64:\n    return Uint64(MIN_EPOCHS_FOR_BLOCK_REQUESTS)\n\ndef oldest_epoch_to_serve(current_epoch: int) -\u003e int:\n    return max(0, current_epoch - compute_min_epochs_for_block_requests())\n\n# Spec test case: at epoch 500_000 a client MUST serve epochs 491_808..500_000.\nassert oldest_epoch_to_serve(500_000) == 491_808\n```\n\n在这个例子中，对 epoch 491,807 的请求可以用 `ResourceUnavailable` 回应，发起请求的对等节点不得因此惩罚服务方。\n\n## 需要注意\n\n- **状态：Draft。** 取值和推出方式仍在讨论中。\n- 不需要硬分叉。它只改变对等节点提供服务的预期，客户端如果愿意可以保留更多历史。执行层的历史过期由 [EIP-4444](/eip-4444/) 单独涵盖。\n- 在混合推出期间，旧客户端可能请求 8,192 到 33,024 个 epoch 之前的区块而被拒绝；由于已有一些节点本来就不提供历史，预计不会有影响。\n- 安全性依赖一个不变量：8,192 个 epoch 必须始终高于最大弱主观性周期。规范测试必须检查这一点，将来对该上限的任何更改都必须重新验证。\n- 对于长时间无法最终确定的情况，该 EIP 建议客户端保留所有未最终确定的区块，而不是依赖保留窗口。\n"}}}
