{"eip":8333,"title":"Align Checkpoint with Epoch Boundary Block","description":"Resolve FFG checkpoints to the last block before the epoch instead of the first block of the epoch","authors":["Cayman (@wemeetagain)","Nico Flaig (@nflaig)","Lodekeeper (@lodekeeper)","twoeths (@twoeths)"],"status":"Withdrawn","type":"Standards Track","category":"Core","created":"2026-07-06","discussionsTo":"https://ethereum-magicians.org/t/eip-8333-align-checkpoint-with-epoch-boundary-block/29003","repo":"EIPs","label":"EIP-8333","officialUrl":"https://eips.ethereum.org/EIPS/eip-8333","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8333.md","url":"https://eips.huatuo.xyz/eip-8333/","tldr":{"en":"A withdrawn consensus-layer proposal to anchor each epoch's finality checkpoint to the last block before the epoch instead of the epoch's first block, so late first-slot blocks stop costing attesters their target votes.","ja":"各エポックのファイナリティ・チェックポイントを、エポックの最初のブロックではなくエポック直前の最後のブロックに固定する、コンセンサスレイヤーの提案（取り下げ済み）。最初のスロットのブロックが遅れても、アテスターが target の投票を失わないようにする。","ko":"각 에포크의 파이널리티 체크포인트를 에포크의 첫 번째 블록이 아니라 에포크 직전의 마지막 블록에 고정하는 컨센서스 레이어 제안(철회됨). 첫 슬롯의 블록이 늦어도 attester가 target 투표를 잃지 않게 한다.","zh":"一项已撤回的共识层提案：把每个 epoch 的最终确认检查点锚定到该 epoch 之前的最后一个区块，而不是该 epoch 的第一个区块，这样首个 slot 的区块迟到就不会再让 attester 丢失 target 投票。"},"tags":["consensus","finality","casper-ffg","attestations","withdrawn"],"explainers":{"en":{"lang":"en","tldr":"A withdrawn consensus-layer proposal to anchor each epoch's finality checkpoint to the last block before the epoch instead of the epoch's first block, so late first-slot blocks stop costing attesters their target votes.","tags":["consensus","finality","casper-ffg","attestations","withdrawn"],"related":[7549,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8333/","markdown":"## What problem does it solve?\n\nEthereum's finality gadget (Casper FFG) works on **checkpoints**: one `(epoch, block root)` pair per epoch. Every attestation votes for the current epoch's checkpoint as its \"target\". Today the checkpoint for epoch `N` is the block in the **first slot** of epoch `N`.\n\nThat causes a recurring problem for the very first committee of each epoch. They must vote shortly after that first block is proposed. If the block arrives late, some attesters vote for it and others vote for the previous block. Only one of those matches the checkpoint the chain settles on, so the other votes don't count toward justification and those validators lose target rewards. The spec reports that target-vote misses on mainnet cluster in the first slot of each epoch.\n\nIt also makes finality slightly misleading: \"epoch `N` is finalized\" today really means only the first block of epoch `N` is final.\n\n## How it works\n\nThe proposal keeps checkpoint **epochs** unchanged and only moves which block a checkpoint points to:\n\n- A new helper `get_checkpoint_slot(epoch)` returns the **last slot before** the epoch begins (from the activation epoch onward). Earlier epochs keep the old rule; the genesis epoch stays at the genesis slot.\n- `get_checkpoint_root(state, epoch)` returns the most recent block at or before that slot, the \"epoch boundary block\". It replaces `get_block_root` wherever targets and justified checkpoints are resolved, and fork choice's `get_checkpoint_block` uses the same helper.\n- Honest validators vote for this boundary block as their target. The special case where the first-slot head block is itself the target goes away.\n\nBecause the boundary block exists before epoch `N` starts, nothing produced during epoch `N` can change the target, and the first committee gets more than a full slot of extra propagation time. Finalizing epoch `N`'s checkpoint then finalizes exactly the chain through the end of epoch `N - 1`.\n\nIf the first slot of an epoch is empty, today's `get_block_root` already falls back to the boundary block, so the change only matters when a first-slot block exists. No containers change, so gossip formats and slashing-protection databases are unaffected.\n\n## Sample code\n\nThe core helpers from the spec (consensus-specs Python):\n\n```python\ndef get_checkpoint_slot(epoch: Epoch) -\u003e Slot:\n    if epoch == GENESIS_EPOCH:\n        return GENESIS_SLOT\n    if epoch \u003c EIP8333_FORK_EPOCH:\n        return compute_start_slot_at_epoch(epoch)          # old anchoring\n    return Slot(compute_start_slot_at_epoch(epoch) - 1)    # last slot before the epoch\n\ndef get_checkpoint_root(state: BeaconState, epoch: Epoch) -\u003e Root:\n    return get_block_root_at_slot(state, get_checkpoint_slot(epoch))\n\n# honest validator target vote\nepoch = get_current_epoch(head_state)\ntarget = Checkpoint(epoch=epoch, root=get_checkpoint_root(head_state, epoch))\n```\n\n## Things to know\n\n- **Status: Withdrawn.** It will not be adopted in this form; treat it as a record of the design idea and its reasoning.\n- It would have been a consensus-layer-only hard fork with no execution-layer changes.\n- Fork-transition rules were essential: checkpoints and attestations from before activation must still resolve under the old anchoring, or block import and fork choice would break.\n- Tooling that assumes a checkpoint root is the block at an epoch's first slot (for example checkpoint-sync providers) would have needed updating.\n- FFG safety is unaffected because justification, finalization and slashing are defined on checkpoint epochs, which do not move.\n"},"ja":{"lang":"ja","tldr":"各エポックのファイナリティ・チェックポイントを、エポックの最初のブロックではなくエポック直前の最後のブロックに固定する、コンセンサスレイヤーの提案（取り下げ済み）。最初のスロットのブロックが遅れても、アテスターが target の投票を失わないようにする。","tags":["consensus","finality","casper-ffg","attestations","withdrawn"],"related":[7549,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8333/","markdown":"## 何を解決するのか\n\nEthereum のファイナリティガジェット（Casper FFG）は**チェックポイント**、つまりエポックごとに 1 つの `(epoch, block root)` の組で動作します。すべてのアテステーションは、現在のエポックのチェックポイントを「target」として投票します。現在、エポック `N` のチェックポイントは、エポック `N` の**最初のスロット**にあるブロックです。\n\nこれは、各エポックのまさに最初の委員会にとって繰り返し発生する問題を引き起こします。委員会は、その最初のブロックが提案された直後に投票しなければなりません。ブロックの到着が遅れると、そのブロックに投票するアテスターもいれば、前のブロックに投票するアテスターもいます。チェーンが最終的に採用するチェックポイントと一致するのはそのうち一方だけなので、もう一方の投票は justification に数えられず、そのバリデーターは target の報酬を失います。仕様は、メインネットでの target 投票のミスが、各エポックの最初のスロットに集中していると報告しています。\n\nまた、ファイナリティが少し誤解を招くものになります。現在、「エポック `N` がファイナライズされた」というのは、実際にはエポック `N` の最初のブロックだけが確定したことを意味します。\n\n## 仕組み\n\nこの提案はチェックポイントの**エポック**は変えず、チェックポイントがどのブロックを指すかだけを動かします。\n\n- 新しいヘルパー `get_checkpoint_slot(epoch)` は、そのエポックが始まる**直前の最後のスロット**を返します（有効化エポック以降）。それ以前のエポックは従来のルールのままで、ジェネシスエポックはジェネシススロットのままです。\n- `get_checkpoint_root(state, epoch)` は、そのスロット以前の最新のブロック、つまり「エポック境界ブロック」を返します。target や justified checkpoint を解決するあらゆる箇所で `get_block_root` に代わって使われ、フォークチョイスの `get_checkpoint_block` も同じヘルパーを使います。\n- 誠実なバリデーターは、この境界ブロックを target として投票します。最初のスロットのヘッドブロックそのものが target になる特殊ケースはなくなります。\n\n境界ブロックはエポック `N` が始まる前に存在するため、エポック `N` の間に生成されるものが target を変えることはなく、最初の委員会は 1 スロット以上の追加の伝播時間を得られます。そしてエポック `N` のチェックポイントをファイナライズすることは、まさにエポック `N - 1` の終わりまでのチェーンをファイナライズすることになります。\n\nエポックの最初のスロットが空の場合、現在の `get_block_root` はすでに境界ブロックにフォールバックするため、この変更が意味を持つのは最初のスロットにブロックがある場合だけです。コンテナは何も変わらないので、ゴシップの形式やスラッシング保護のデータベースは影響を受けません。\n\n## サンプルコード\n\n仕様の中核となるヘルパー（consensus-specs の Python）:\n\n```python\ndef get_checkpoint_slot(epoch: Epoch) -\u003e Slot:\n    if epoch == GENESIS_EPOCH:\n        return GENESIS_SLOT\n    if epoch \u003c EIP8333_FORK_EPOCH:\n        return compute_start_slot_at_epoch(epoch)          # old anchoring\n    return Slot(compute_start_slot_at_epoch(epoch) - 1)    # last slot before the epoch\n\ndef get_checkpoint_root(state: BeaconState, epoch: Epoch) -\u003e Root:\n    return get_block_root_at_slot(state, get_checkpoint_slot(epoch))\n\n# honest validator target vote\nepoch = get_current_epoch(head_state)\ntarget = Checkpoint(epoch=epoch, root=get_checkpoint_root(head_state, epoch))\n```\n\n## 知っておくべきこと\n\n- **ステータス: Withdrawn。** この形では採用されません。設計のアイデアとその理由の記録として扱ってください。\n- 実行レイヤーの変更を伴わない、コンセンサスレイヤーのみのハードフォークになるはずでした。\n- フォーク移行のルールが不可欠でした。有効化前のチェックポイントとアテステーションは、旧来の固定方式のもとでも解決できなければならず、さもないとブロックのインポートとフォークチョイスが壊れます。\n- チェックポイントのルートがエポックの最初のスロットのブロックであることを前提とするツール（たとえばチェックポイント同期のプロバイダー）は、更新が必要になったはずです。\n- justification、ファイナライゼーション、スラッシングは動かないチェックポイントのエポックを基準に定義されているため、FFG の安全性は影響を受けません。\n"},"ko":{"lang":"ko","tldr":"각 에포크의 파이널리티 체크포인트를 에포크의 첫 번째 블록이 아니라 에포크 직전의 마지막 블록에 고정하는 컨센서스 레이어 제안(철회됨). 첫 슬롯의 블록이 늦어도 attester가 target 투표를 잃지 않게 한다.","tags":["consensus","finality","casper-ffg","attestations","withdrawn"],"related":[7549,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8333/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움의 파이널리티 가젯(Casper FFG)은 **체크포인트**, 즉 에포크마다 하나의 `(epoch, block root)` 쌍으로 동작합니다. 모든 attestation은 현재 에포크의 체크포인트를 \"target\"으로 투표합니다. 현재 에포크 `N`의 체크포인트는 에포크 `N`의 **첫 번째 슬롯**에 있는 블록입니다.\n\n이는 각 에포크의 가장 첫 위원회에 반복적으로 문제를 일으킵니다. 그들은 그 첫 블록이 제안된 직후 곧바로 투표해야 합니다. 블록이 늦게 도착하면 일부 attester는 그 블록에, 다른 attester는 이전 블록에 투표합니다. 이 중 체인이 최종적으로 채택하는 체크포인트와 일치하는 것은 하나뿐이므로 나머지 투표는 justification에 반영되지 않고, 그 검증자들은 target 보상을 잃습니다. 명세는 메인넷에서 target 투표 누락이 각 에포크의 첫 슬롯에 몰려 있다고 보고합니다.\n\n또한 파이널리티가 다소 오해를 부릅니다. 현재 \"에포크 `N`이 확정되었다\"는 것은 실제로는 에포크 `N`의 첫 번째 블록만 확정되었다는 뜻입니다.\n\n## 어떻게 동작하나요?\n\n이 제안은 체크포인트 **에포크**는 그대로 두고, 체크포인트가 가리키는 블록만 옮깁니다.\n\n- 새 헬퍼 `get_checkpoint_slot(epoch)`은 에포크가 시작되기 **직전의 마지막 슬롯**을 반환합니다(활성화 에포크부터). 이전 에포크는 기존 규칙을 유지하며 제네시스 에포크는 제네시스 슬롯에 그대로 있습니다.\n- `get_checkpoint_root(state, epoch)`는 그 슬롯 또는 그 이전의 가장 최근 블록, 즉 \"에포크 경계 블록\"을 반환합니다. target과 justified 체크포인트를 해석하는 모든 곳에서 `get_block_root`를 대체하며, 포크 초이스의 `get_checkpoint_block`도 같은 헬퍼를 사용합니다.\n- 정직한 검증자는 이 경계 블록을 target으로 투표합니다. 첫 슬롯의 헤드 블록 자체가 target이 되는 특수한 경우는 사라집니다.\n\n경계 블록은 에포크 `N`이 시작되기 전에 존재하므로 에포크 `N` 동안 생성되는 어떤 것도 target을 바꿀 수 없고, 첫 위원회는 한 슬롯 이상의 추가 전파 시간을 얻습니다. 그러면 에포크 `N`의 체크포인트를 확정하는 것은 정확히 에포크 `N - 1`의 끝까지의 체인을 확정하는 것이 됩니다.\n\n에포크의 첫 슬롯이 비어 있다면 현재의 `get_block_root`가 이미 경계 블록으로 폴백하므로, 이 변경은 첫 슬롯에 블록이 있을 때만 의미가 있습니다. 바뀌는 컨테이너가 없으므로 가십 형식과 슬래싱 방지 데이터베이스는 영향을 받지 않습니다.\n\n## 샘플 코드\n\n명세의 핵심 헬퍼(consensus-specs Python):\n\n```python\ndef get_checkpoint_slot(epoch: Epoch) -\u003e Slot:\n    if epoch == GENESIS_EPOCH:\n        return GENESIS_SLOT\n    if epoch \u003c EIP8333_FORK_EPOCH:\n        return compute_start_slot_at_epoch(epoch)          # old anchoring\n    return Slot(compute_start_slot_at_epoch(epoch) - 1)    # last slot before the epoch\n\ndef get_checkpoint_root(state: BeaconState, epoch: Epoch) -\u003e Root:\n    return get_block_root_at_slot(state, get_checkpoint_slot(epoch))\n\n# honest validator target vote\nepoch = get_current_epoch(head_state)\ntarget = Checkpoint(epoch=epoch, root=get_checkpoint_root(head_state, epoch))\n```\n\n## 알아둘 점\n\n- **상태: Withdrawn.** 이 형태로는 채택되지 않을 것이며, 설계 아이디어와 그 근거의 기록으로 봐 주세요.\n- 실행 레이어 변경이 없는, 컨센서스 레이어만의 하드 포크였을 것입니다.\n- 포크 전환 규칙이 필수적이었습니다. 활성화 이전의 체크포인트와 attestation도 기존 고정 방식으로 해석될 수 있어야 하며, 그렇지 않으면 블록 임포트와 포크 초이스가 깨집니다.\n- 체크포인트 루트가 에포크 첫 슬롯의 블록이라고 가정하는 도구(예: 체크포인트 싱크 제공자)는 업데이트가 필요했을 것입니다.\n- justification, finalization, 슬래싱은 움직이지 않는 체크포인트 에포크를 기준으로 정의되므로 FFG의 안전성은 영향을 받지 않습니다.\n"},"zh":{"lang":"zh","tldr":"一项已撤回的共识层提案：把每个 epoch 的最终确认检查点锚定到该 epoch 之前的最后一个区块，而不是该 epoch 的第一个区块，这样首个 slot 的区块迟到就不会再让 attester 丢失 target 投票。","tags":["consensus","finality","casper-ffg","attestations","withdrawn"],"related":[7549,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8333/","markdown":"## 它解决什么问题？\n\n以太坊的最终性机制（Casper FFG）基于**检查点**工作：每个 epoch 有一个 `(epoch, block root)` 对。每个 attestation 都把当前 epoch 的检查点作为其 \"target\" 来投票。目前，epoch `N` 的检查点是 epoch `N` **第一个 slot** 中的区块。\n\n这给每个 epoch 最开始的那个委员会带来了反复出现的问题。他们必须在第一个区块被提出后不久就投票。如果该区块到得晚，一些 attester 会投给它，另一些则投给前一个区块。其中只有一个与链最终采用的检查点一致，因此另一部分投票不计入 justification，这些验证者会损失 target 奖励。规范报告称，主网上 target 投票的缺失集中出现在每个 epoch 的第一个 slot。\n\n它还让最终性略有误导：\"epoch `N` 已最终确认\"在今天实际上仅仅意味着 epoch `N` 的第一个区块是最终的。\n\n## 它如何运作\n\n该提案保持检查点的 **epoch** 不变，只改变检查点指向哪个区块：\n\n- 新的辅助函数 `get_checkpoint_slot(epoch)` 返回该 epoch 开始**之前的最后一个 slot**（从激活 epoch 起适用）。更早的 epoch 沿用旧规则；创世 epoch 仍停留在创世 slot。\n- `get_checkpoint_root(state, epoch)` 返回在该 slot 或之前的最近一个区块，即\"epoch 边界区块\"。凡是解析 target 和 justified 检查点的地方，它都取代 `get_block_root`，fork choice 的 `get_checkpoint_block` 也使用同一个辅助函数。\n- 诚实的验证者把这个边界区块作为其 target 来投票。首个 slot 的头部区块本身就是 target 的那种特殊情况不复存在。\n\n由于边界区块在 epoch `N` 开始之前就已存在，epoch `N` 期间产生的任何内容都无法改变 target，第一个委员会也因此多出一个以上完整 slot 的传播时间。这样，最终确认 epoch `N` 的检查点，恰好就是最终确认到 epoch `N - 1` 结束为止的整条链。\n\n如果某个 epoch 的第一个 slot 为空，今天的 `get_block_root` 本来就会回退到边界区块，所以这项改动只在第一个 slot 有区块时才有影响。没有任何容器发生变化，因此 gossip 格式和惩罚保护数据库不受影响。\n\n## 示例代码\n\n规范中的核心辅助函数（consensus-specs 的 Python）：\n\n```python\ndef get_checkpoint_slot(epoch: Epoch) -\u003e Slot:\n    if epoch == GENESIS_EPOCH:\n        return GENESIS_SLOT\n    if epoch \u003c EIP8333_FORK_EPOCH:\n        return compute_start_slot_at_epoch(epoch)          # old anchoring\n    return Slot(compute_start_slot_at_epoch(epoch) - 1)    # last slot before the epoch\n\ndef get_checkpoint_root(state: BeaconState, epoch: Epoch) -\u003e Root:\n    return get_block_root_at_slot(state, get_checkpoint_slot(epoch))\n\n# honest validator target vote\nepoch = get_current_epoch(head_state)\ntarget = Checkpoint(epoch=epoch, root=get_checkpoint_root(head_state, epoch))\n```\n\n## 需要注意\n\n- **状态：Withdrawn。**它不会以这种形式被采纳；请将其视为对这一设计思路及其推理的记录。\n- 它本来会是一次仅限共识层的硬分叉，不涉及执行层的改动。\n- 分叉过渡规则至关重要：激活之前的检查点和 attestation 仍必须按旧的锚定方式解析，否则区块导入和 fork choice 会出问题。\n- 凡是假定检查点根就是 epoch 第一个 slot 的区块的工具（例如检查点同步提供方），本来都需要更新。\n- FFG 的安全性不受影响，因为 justification、finalization 和惩罚都是基于不会移动的检查点 epoch 来定义的。\n"}}}
