{"eip":8045,"title":"Exclude slashed validators from proposing","description":"Modify proposer selection to exclude slashed validators, improving network resilience and performance after mass slashings","authors":["Francesco D'Amato (@fradamt)","Barnabas Busa (@barnabasbusa)"],"status":"Last Call","type":"Standards Track","category":"Core","created":"2025-10-16","requires":[7917],"discussionsTo":"https://ethereum-magicians.org/t/eip-8045-exclude-slashed-validators-from-proposing/25850","repo":"EIPs","label":"EIP-8045","officialUrl":"https://eips.ethereum.org/EIPS/eip-8045","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8045.md","url":"https://eips.huatuo.xyz/eip-8045/","tldr":{"en":"Stops slashed validators from being picked as block proposers, so a mass-slashing event no longer causes a long stretch of missed slots.","ja":"スラッシングされたバリデーターがブロック提案者に選ばれないようにし、大規模スラッシング発生時にスロットの欠落が長く続かないようにする。","ko":"슬래싱된 검증자가 블록 제안자로 뽑히지 않게 하여, 대규모 슬래싱이 발생해도 슬롯 누락이 길게 이어지지 않도록 한다.","zh":"阻止被罚没（slashed）的验证者被选为区块提议者，使大规模罚没事件不再导致长时间连续错过 slot。"},"tags":["consensus","validators","slashing","proposers","resilience"],"explainers":{"en":{"lang":"en","tldr":"Stops slashed validators from being picked as block proposers, so a mass-slashing event no longer causes a long stretch of missed slots.","tags":["consensus","validators","slashing","proposers","resilience"],"related":[7917,7251],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8045/","markdown":"## What problem does it solve?\n\nA slashed validator stays in the active set until its forced exit completes, and during that time it can still be chosen to propose a block. But the beacon chain's state transition already rejects any block from a slashed proposer. So every time one is selected, the slot is simply missed.\n\nFor an occasional slashing that is a minor nuisance. After a **mass slashing** (for example a bug in a popular client or staking setup) many validators can be slashed at once, and the chain may suffer a long period of degraded performance with many empty slots, possibly while the network is already in trouble and trying to recover.\n\n## How it works\n\nThe change is one line in the consensus spec: `get_beacon_proposer_indices` filters out slashed validators from the candidate list **before** the shuffle. Selection among the remaining active, unslashed validators is unchanged, still weighted by effective balance.\n\nHistorically this was not done because excluding slashed validators would reshuffle future proposers every time a slashing was processed, destabilising the lookahead. [EIP-7917](/eip-7917/) fixed that by storing the proposer lookahead in the beacon state. With the schedule fixed in advance, slashings processed later no longer change it, so filtering becomes safe.\n\nThe authors considered an alternative (shuffle everyone, then skip slashed picks). It gives a slightly different exact selection but the same goal; they chose upfront filtering for simplicity.\n\n## Sample code\n\nThe modified function, from the spec:\n\n```python\ndef get_beacon_proposer_indices(\n    state: BeaconState, epoch: Epoch\n) -\u003e Vector[ValidatorIndex, SLOTS_PER_EPOCH]:\n    \"\"\"Return the proposer indices for the given ``epoch``.\"\"\"\n    # Modified to exclude slashed validators\n    indices = [\n        i for i in get_active_validator_indices(state, epoch)\n        if not state.validators[i].slashed\n    ]\n    seed = get_seed(state, epoch, DOMAIN_BEACON_PROPOSER)\n    return compute_proposer_indices(state, epoch, seed, indices)\n```\n\n## Things to know\n\n- **Status: Last Call** (deadline 2026-11-01 in the spec). It is close to final but can still change.\n- It is a consensus-rule change and must ship in a scheduled network upgrade; it requires [EIP-7917](/eip-7917/).\n- Proposer slots already in the stored lookahead are not affected by new slashings; the filter applies when future epochs are computed.\n- Fairness among honest validators is unchanged; they simply receive the slots slashed validators would have wasted.\n- Slashing penalties and exit timing are not changed by this EIP.\n"},"ja":{"lang":"ja","tldr":"スラッシングされたバリデーターがブロック提案者に選ばれないようにし、大規模スラッシング発生時にスロットの欠落が長く続かないようにする。","tags":["consensus","validators","slashing","proposers","resilience"],"related":[7917,7251],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8045/","markdown":"## 何を解決するのか\n\nスラッシングされたバリデーターは、強制退出が完了するまでアクティブセットに残り、その間もブロック提案者に選ばれる可能性があります。しかし、ビーコンチェーンのステート遷移は、スラッシング済みの提案者からのブロックをすでに拒否します。そのため、選ばれるたびにそのスロットは単に欠落します。\n\nたまに起きるスラッシングであれば、ささいな不都合にすぎません。しかし**大規模スラッシング**（たとえば広く使われているクライアントやステーキング構成のバグ）が起きると、多くのバリデーターが一度にスラッシングされ、空のスロットが多数発生してチェーンの性能が長期間低下することがあります。ネットワークがすでに困難に陥り、回復を試みている最中に起こる可能性もあります。\n\n## 仕組み\n\n変更はコンセンサス仕様の 1 行だけです。`get_beacon_proposer_indices` が、シャッフルの**前に**候補リストからスラッシング済みバリデーターを除外します。残りのアクティブでスラッシングされていないバリデーターの間での選択は変わらず、引き続き実効残高で重み付けされます。\n\nこれまでこれが行われなかったのは、スラッシング済みバリデーターを除外すると、スラッシングが処理されるたびに将来の提案者が再シャッフルされ、先読みが不安定になるためでした。[EIP-7917](/eip-7917/) は、提案者のルックアヘッドをビーコンステートに保存することでこれを解決しました。スケジュールがあらかじめ固定されるため、後から処理されたスラッシングがそれを変えることはなくなり、フィルタリングが安全になります。\n\n作者は代替案（全員をシャッフルしてからスラッシング済みの選出をスキップする）も検討しました。厳密な選出結果は少し異なりますが目的は同じで、簡潔さのために事前フィルタリングを選びました。\n\n## サンプルコード\n\n仕様にある、変更後の関数:\n\n```python\ndef get_beacon_proposer_indices(\n    state: BeaconState, epoch: Epoch\n) -\u003e Vector[ValidatorIndex, SLOTS_PER_EPOCH]:\n    \"\"\"Return the proposer indices for the given ``epoch``.\"\"\"\n    # Modified to exclude slashed validators\n    indices = [\n        i for i in get_active_validator_indices(state, epoch)\n        if not state.validators[i].slashed\n    ]\n    seed = get_seed(state, epoch, DOMAIN_BEACON_PROPOSER)\n    return compute_proposer_indices(state, epoch, seed, indices)\n```\n\n## 知っておくべきこと\n\n- **ステータス: Last Call**（仕様上の期限は 2026-11-01）。ほぼ最終ですが、まだ変更される可能性があります。\n- コンセンサスルールの変更であり、予定されたネットワークアップグレードで出荷する必要があります。[EIP-7917](/eip-7917/) が必要です。\n- 保存済みのルックアヘッドにすでに入っている提案者スロットは、新たなスラッシングの影響を受けません。フィルターは将来のエポックを計算する際に適用されます。\n- 誠実なバリデーター間の公平性は変わりません。スラッシング済みバリデーターが無駄にしていたはずのスロットを、単に受け取るだけです。\n- スラッシングのペナルティと退出のタイミングは、この EIP では変更されません。\n"},"ko":{"lang":"ko","tldr":"슬래싱된 검증자가 블록 제안자로 뽑히지 않게 하여, 대규모 슬래싱이 발생해도 슬롯 누락이 길게 이어지지 않도록 한다.","tags":["consensus","validators","slashing","proposers","resilience"],"related":[7917,7251],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8045/","markdown":"## 어떤 문제를 해결하나요?\n\n슬래싱된 검증자는 강제 퇴출이 끝날 때까지 활성 집합에 남아 있으며, 그동안에도 블록 제안자로 선택될 수 있습니다. 그런데 비콘 체인의 상태 전이는 슬래싱된 제안자의 블록을 이미 거부합니다. 그래서 그런 검증자가 선택될 때마다 해당 슬롯은 그냥 누락됩니다.\n\n가끔 일어나는 슬래싱이라면 사소한 불편입니다. 하지만 **대규모 슬래싱**(예: 널리 쓰이는 클라이언트나 스테이킹 구성의 버그) 이후에는 많은 검증자가 한꺼번에 슬래싱되어, 빈 슬롯이 많아지며 체인 성능이 오랫동안 저하될 수 있습니다. 네트워크가 이미 어려움에 처해 복구를 시도하는 중에 그럴 수도 있습니다.\n\n## 어떻게 동작하나요?\n\n변경은 합의 스펙의 한 줄입니다. `get_beacon_proposer_indices`가 셔플 **이전에** 후보 목록에서 슬래싱된 검증자를 걸러냅니다. 남은 활성, 비슬래싱 검증자 중에서의 선택은 그대로이며, 여전히 유효 잔액으로 가중됩니다.\n\n과거에 이렇게 하지 않은 이유는, 슬래싱된 검증자를 제외하면 슬래싱이 처리될 때마다 미래의 제안자가 다시 섞여 룩어헤드가 불안정해지기 때문이었습니다. [EIP-7917](/eip-7917/)은 제안자 룩어헤드를 비콘 상태에 저장해 이를 해결했습니다. 일정이 미리 고정되므로 이후에 처리되는 슬래싱이 일정을 바꾸지 않아, 필터링이 안전해집니다.\n\n작성자들은 대안(모두를 셔플한 뒤 슬래싱된 당첨자를 건너뛰기)도 검토했습니다. 정확한 선택 결과는 조금 다르지만 목표는 같으며, 단순함을 위해 사전 필터링을 택했습니다.\n\n## 샘플 코드\n\n스펙에서 가져온, 수정된 함수:\n\n```python\ndef get_beacon_proposer_indices(\n    state: BeaconState, epoch: Epoch\n) -\u003e Vector[ValidatorIndex, SLOTS_PER_EPOCH]:\n    \"\"\"Return the proposer indices for the given ``epoch``.\"\"\"\n    # Modified to exclude slashed validators\n    indices = [\n        i for i in get_active_validator_indices(state, epoch)\n        if not state.validators[i].slashed\n    ]\n    seed = get_seed(state, epoch, DOMAIN_BEACON_PROPOSER)\n    return compute_proposer_indices(state, epoch, seed, indices)\n```\n\n## 알아둘 점\n\n- **상태: Last Call**(스펙상 마감일 2026-11-01). 거의 최종이지만 여전히 바뀔 수 있습니다.\n- 합의 규칙 변경이므로 예정된 네트워크 업그레이드에 포함되어야 하며, [EIP-7917](/eip-7917/)이 필요합니다.\n- 이미 저장된 룩어헤드에 있는 제안자 슬롯은 새로운 슬래싱의 영향을 받지 않습니다. 필터는 미래 에포크를 계산할 때 적용됩니다.\n- 정직한 검증자 사이의 공정성은 달라지지 않습니다. 슬래싱된 검증자가 낭비했을 슬롯을 대신 받을 뿐입니다.\n- 슬래싱 페널티와 퇴출 시점은 이 EIP로 바뀌지 않습니다.\n"},"zh":{"lang":"zh","tldr":"阻止被罚没（slashed）的验证者被选为区块提议者，使大规模罚没事件不再导致长时间连续错过 slot。","tags":["consensus","validators","slashing","proposers","resilience"],"related":[7917,7251],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8045/","markdown":"## 它解决什么问题？\n\n被罚没的验证者在强制退出完成之前仍留在活跃集合中，在此期间它仍可能被选中提议区块。但信标链的状态转换本来就会拒绝被罚没提议者的任何区块。因此每次选中这样的验证者，该 slot 就会被直接错过。\n\n偶尔发生的罚没只是小麻烦。但在**大规模罚没**之后（例如某个流行客户端或质押方案出现 bug），许多验证者可能同时被罚没，链可能长时间性能下降，出现大量空 slot，而且很可能发生在网络本已陷入困境、正试图恢复的时候。\n\n## 它如何运作\n\n改动在共识规范中只有一行：`get_beacon_proposer_indices` 在洗牌**之前**从候选列表中过滤掉被罚没的验证者。其余活跃且未被罚没的验证者之间的选择保持不变，仍按有效余额加权。\n\n过去之所以没有这样做，是因为排除被罚没的验证者会在每次处理罚没时打乱未来的提议者，破坏前瞻的稳定。[EIP-7917](/eip-7917/) 通过把提议者前瞻存入信标状态解决了这一问题。日程提前固定后，之后处理的罚没不再改变它，过滤就变得安全了。\n\n作者考虑过另一种方案（先对所有人洗牌，再跳过被罚没的选中者）。它的具体选择结果略有不同，但目标相同；他们为了简单选择了预先过滤。\n\n## 示例代码\n\n规范中修改后的函数：\n\n```python\ndef get_beacon_proposer_indices(\n    state: BeaconState, epoch: Epoch\n) -\u003e Vector[ValidatorIndex, SLOTS_PER_EPOCH]:\n    \"\"\"Return the proposer indices for the given ``epoch``.\"\"\"\n    # Modified to exclude slashed validators\n    indices = [\n        i for i in get_active_validator_indices(state, epoch)\n        if not state.validators[i].slashed\n    ]\n    seed = get_seed(state, epoch, DOMAIN_BEACON_PROPOSER)\n    return compute_proposer_indices(state, epoch, seed, indices)\n```\n\n## 需要注意\n\n- **状态：Last Call**（规范中的截止日期为 2026-11-01）。它已接近最终，但仍可能改变。\n- 这是共识规则的改动，必须随计划中的网络升级发布；它依赖 [EIP-7917](/eip-7917/)。\n- 已经在存储的前瞻中的提议者 slot 不受新罚没影响；过滤在计算未来 epoch 时生效。\n- 诚实验证者之间的公平性不变；他们只是获得了原本会被被罚没验证者浪费的 slot。\n- 本 EIP 不改变罚没惩罚和退出时间。\n"}}}
