{"eip":8080,"title":"Let exits use the consolidation queue","description":"Allows exits to use consolidation queue, democratizing access to an unintended feature, improving liquidity while preserving security.","authors":["Francesco D'Amato (@fradamt)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2025-11-13","discussionsTo":"https://ethereum-magicians.org/t/eip-8080-let-exits-use-the-consolidation-queue/26552","repo":"EIPs","label":"EIP-8080","officialUrl":"https://eips.ethereum.org/EIPS/eip-8080","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8080.md","url":"https://eips.huatuo.xyz/eip-8080/","tldr":{"en":"A draft consensus change that routes validator exits through the consolidation queue whenever it is shorter than the exit queue, giving every staker access to a shortcut today only usable by 2048-ETH validators and raising maximum exit throughput without weakening security.","ja":"バリデータの退出を、コンソリデーションキューが退出キューより短いときは常にそちらへ回すコンセンサス変更のドラフト。現在は 2048 ETH のバリデータだけが使える近道をすべてのステーカーに開放し、セキュリティを弱めることなく最大退出スループットを引き上げる。","ko":"통합(consolidation) 큐가 퇴출 큐보다 짧을 때마다 검증자 퇴출을 통합 큐로 보내는 합의 변경 초안. 지금은 2048 ETH 검증자만 쓸 수 있는 지름길을 모든 스테이커에게 열어 주고, 보안을 약화하지 않으면서 최대 퇴출 처리량을 높인다.","zh":"共识层变更草案：只要整合队列比退出队列短，就把验证者退出路由到整合队列，让每位质押者都能使用目前只有 2048 ETH 验证者才能用的捷径，在不削弱安全性的前提下提高最大退出吞吐量。"},"tags":["staking","consensus","validators","exits","withdrawals"],"explainers":{"en":{"lang":"en","tldr":"A draft consensus change that routes validator exits through the consolidation queue whenever it is shorter than the exit queue, giving every staker access to a shortcut today only usable by 2048-ETH validators and raising maximum exit throughput without weakening security.","tags":["staking","consensus","validators","exits","withdrawals"],"related":[7251,7002,8061,7922],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8080/","markdown":"## What problem does it solve?\n\nValidators leaving the beacon chain wait in an **exit queue**, rate-limited by an exit \"churn\" so the validator set cannot change too quickly (which protects the weak subjectivity period). Since Pectra there is also a separate **consolidation queue** for merging validators, introduced with [EIP-7251](/eip-7251/).\n\nAccording to the spec, the exit queue has been longer than forty days for extended periods, while the consolidation queue has usually been shorter. Validators with at least 2048 ETH can exploit a loophole in the consolidation logic to exit via the consolidation queue and skip the line. Smaller validators, including solo stakers who cannot issue a liquid staking token, cannot. EIP-8080 removes this unfairness by opening the shortcut to everyone.\n\n## How it works\n\nOne check is added at the start of the consensus-spec function `compute_exit_epoch_and_update_churn`:\n\n- If the earliest available exit epoch is **later** than the earliest available consolidation epoch, the exit is scheduled through the consolidation queue instead.\n- It consumes consolidation churn equal to **2/3 of the exit balance**, because from a weak-subjectivity standpoint one unit of exit churn is worth 2/3 of a unit of consolidation churn. This keeps the safety impact identical whether the consolidation churn is spent on consolidations or exits.\n- Otherwise exits are processed exactly as before.\n\nUsing the spec's own example (about 35.7M ETH staked), maximum exit throughput would rise from 256 ETH per epoch to 256 + (544 − 256) × 3/2 = **688 ETH per epoch**, roughly 2.5× today's cap. Total churn, and therefore the weak subjectivity period, does not change; idle consolidation capacity simply stops going to waste.\n\n## Sample code\n\nThe modified function, from the spec (Python consensus-spec style):\n\n```python\ndef compute_exit_epoch_and_update_churn(state: BeaconState, exit_balance: Gwei) -\u003e Epoch:\n    activation_exit_epoch = compute_activation_exit_epoch(get_current_epoch(state))\n    earliest_exit_epoch = max(state.earliest_exit_epoch, activation_exit_epoch)\n\n    # NEW: use the consolidation queue if it is shorter\n    earliest_consolidation_epoch = max(state.earliest_consolidation_epoch, activation_exit_epoch)\n    if earliest_exit_epoch \u003e earliest_consolidation_epoch:\n        return compute_consolidation_epoch_and_update_churn(state, 2 * exit_balance // 3)\n\n    # Unchanged exit-queue logic below\n    per_epoch_churn = get_exit_churn_limit(state)\n    if state.earliest_exit_epoch \u003c earliest_exit_epoch:\n        exit_balance_to_consume = per_epoch_churn\n    else:\n        exit_balance_to_consume = state.exit_balance_to_consume\n    if exit_balance \u003e exit_balance_to_consume:\n        balance_to_process = exit_balance - exit_balance_to_consume\n        additional_epochs = (balance_to_process - 1) // per_epoch_churn + 1\n        earliest_exit_epoch += additional_epochs\n        exit_balance_to_consume += additional_epochs * per_epoch_churn\n    state.exit_balance_to_consume = exit_balance_to_consume - exit_balance\n    state.earliest_exit_epoch = earliest_exit_epoch\n    return state.earliest_exit_epoch\n```\n\n## Things to know\n\n- **Status: Draft.** Test cases are still TODO, and it needs a consensus-layer hard fork.\n- Nothing changes for stakers' tooling: exits are still triggered the usual way (voluntary exit or [EIP-7002](/eip-7002/) execution-layer request); only the scheduling of the exit epoch differs.\n- When exits use the consolidation queue, consolidations will wait longer, since they now share that churn.\n- The throughput figures depend on total stake and churn parameters at the time; treat 688 ETH/epoch as the spec's illustration, not a fixed constant.\n- Related churn proposals: [EIP-8061](/eip-8061/) (increase exit and consolidation churn) and [EIP-7922](/eip-7922/) (dynamic exit queue rate limit).\n"},"ja":{"lang":"ja","tldr":"バリデータの退出を、コンソリデーションキューが退出キューより短いときは常にそちらへ回すコンセンサス変更のドラフト。現在は 2048 ETH のバリデータだけが使える近道をすべてのステーカーに開放し、セキュリティを弱めることなく最大退出スループットを引き上げる。","tags":["staking","consensus","validators","exits","withdrawals"],"related":[7251,7002,8061,7922],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8080/","markdown":"## 何を解決するのか\n\nビーコンチェーンから退出するバリデータは**退出キュー**で待ちます。バリデータセットが急に変わりすぎないよう（ウィークサブジェクティビティ期間を守るため）、退出の「チャーン」でレート制限されています。Pectra 以降は、バリデータを統合するための別の**コンソリデーションキュー**もあり、[EIP-7251](/eip-7251/) で導入されました。\n\n仕様によると、退出キューは長期間にわたり 40 日を超える長さになっている一方、コンソリデーションキューは通常それより短い状態が続いています。2048 ETH 以上のバリデータは、コンソリデーションロジックの抜け穴を使ってコンソリデーションキュー経由で退出し、順番待ちを飛ばせます。それより小さなバリデータ、たとえば流動性ステーキングトークンを発行できないソロステーカーには、それができません。EIP-8080 は、この近道を全員に開くことで、この不公平を解消します。\n\n## 仕組み\n\nコンセンサス仕様の関数 `compute_exit_epoch_and_update_churn` の冒頭に、チェックが 1 つ追加されます。\n\n- 利用可能な最も早い退出エポックが、利用可能な最も早いコンソリデーションエポックより**後**であれば、その退出はコンソリデーションキュー経由でスケジュールされます。\n- このときコンソリデーションのチャーンを、**退出残高の 2/3** だけ消費します。ウィークサブジェクティビティの観点では、退出チャーン 1 単位がコンソリデーションチャーン 2/3 単位に相当するためです。これにより、コンソリデーションチャーンがコンソリデーションに使われても退出に使われても、安全性への影響は同じになります。\n- それ以外の場合、退出はこれまでとまったく同じように処理されます。\n\n仕様自身の例（約 3,570 万 ETH がステーク済み）で見ると、最大退出スループットは 1 エポックあたり 256 ETH から 256 + (544 − 256) × 3/2 = **688 ETH/エポック**に上がり、現在の上限の約 2.5 倍になります。総チャーン、つまりウィークサブジェクティビティ期間は変わらず、使われていなかったコンソリデーションの余力が無駄にならなくなるだけです。\n\n## サンプルコード\n\n仕様に記載された、変更後の関数（Python、コンセンサス仕様のスタイル）:\n\n```python\ndef compute_exit_epoch_and_update_churn(state: BeaconState, exit_balance: Gwei) -\u003e Epoch:\n    activation_exit_epoch = compute_activation_exit_epoch(get_current_epoch(state))\n    earliest_exit_epoch = max(state.earliest_exit_epoch, activation_exit_epoch)\n\n    # NEW: use the consolidation queue if it is shorter\n    earliest_consolidation_epoch = max(state.earliest_consolidation_epoch, activation_exit_epoch)\n    if earliest_exit_epoch \u003e earliest_consolidation_epoch:\n        return compute_consolidation_epoch_and_update_churn(state, 2 * exit_balance // 3)\n\n    # Unchanged exit-queue logic below\n    per_epoch_churn = get_exit_churn_limit(state)\n    if state.earliest_exit_epoch \u003c earliest_exit_epoch:\n        exit_balance_to_consume = per_epoch_churn\n    else:\n        exit_balance_to_consume = state.exit_balance_to_consume\n    if exit_balance \u003e exit_balance_to_consume:\n        balance_to_process = exit_balance - exit_balance_to_consume\n        additional_epochs = (balance_to_process - 1) // per_epoch_churn + 1\n        earliest_exit_epoch += additional_epochs\n        exit_balance_to_consume += additional_epochs * per_epoch_churn\n    state.exit_balance_to_consume = exit_balance_to_consume - exit_balance\n    state.earliest_exit_epoch = earliest_exit_epoch\n    return state.earliest_exit_epoch\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** テストケースはまだ TODO で、コンセンサスレイヤーのハードフォークが必要です。\n- ステーカーのツールには何の変更もありません。退出はこれまでどおりの方法（自発的退出、または [EIP-7002](/eip-7002/) の実行レイヤーからのリクエスト）でトリガーされ、異なるのは退出エポックのスケジューリングだけです。\n- 退出がコンソリデーションキューを使うと、コンソリデーションはそのチャーンを共有するため、より長く待つことになります。\n- スループットの数値は、その時点の総ステーク量とチャーンのパラメータに依存します。688 ETH/エポックは仕様による例示であり、固定の定数ではありません。\n- 関連するチャーン提案: [EIP-8061](/eip-8061/)（退出とコンソリデーションのチャーンを増やす）、[EIP-7922](/eip-7922/)（動的な退出キューのレート制限）。\n"},"ko":{"lang":"ko","tldr":"통합(consolidation) 큐가 퇴출 큐보다 짧을 때마다 검증자 퇴출을 통합 큐로 보내는 합의 변경 초안. 지금은 2048 ETH 검증자만 쓸 수 있는 지름길을 모든 스테이커에게 열어 주고, 보안을 약화하지 않으면서 최대 퇴출 처리량을 높인다.","tags":["staking","consensus","validators","exits","withdrawals"],"related":[7251,7002,8061,7922],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8080/","markdown":"## 어떤 문제를 해결하나요?\n\n비콘 체인을 떠나는 검증자는 **퇴출 큐(exit queue)**에서 대기하며, 검증자 집합이 너무 빨리 바뀌지 않도록(약한 주관성 기간을 보호하기 위해) 퇴출 \"churn\"으로 속도가 제한됩니다. Pectra 이후에는 검증자를 합치기 위한 별도의 **통합 큐(consolidation queue)**도 있으며, [EIP-7251](/eip-7251/)에서 도입되었습니다.\n\n스펙에 따르면 퇴출 큐는 오랫동안 40일 넘게 길었고, 통합 큐는 보통 더 짧았습니다. 2048 ETH 이상을 가진 검증자는 통합 로직의 허점을 이용해 통합 큐로 퇴출하여 줄을 건너뛸 수 있습니다. 더 작은 검증자, 유동성 스테이킹 토큰을 발행할 수 없는 솔로 스테이커를 포함한 검증자들은 그럴 수 없습니다. EIP-8080은 이 지름길을 모두에게 열어 이런 불공평을 없앱니다.\n\n## 어떻게 동작하나요?\n\n합의 스펙 함수 `compute_exit_epoch_and_update_churn`의 시작 부분에 검사 하나가 추가됩니다.\n\n- 사용 가능한 가장 이른 퇴출 에포크가 사용 가능한 가장 이른 통합 에포크보다 **늦으면**, 퇴출은 대신 통합 큐를 통해 예약됩니다.\n- 이때 **퇴출 잔액의 2/3**에 해당하는 통합 churn을 소비합니다. 약한 주관성 관점에서 퇴출 churn 1단위는 통합 churn 2/3단위의 가치가 있기 때문입니다. 따라서 통합 churn을 통합에 쓰든 퇴출에 쓰든 안전성에 미치는 영향이 같습니다.\n- 그렇지 않으면 퇴출은 이전과 똑같이 처리됩니다.\n\n스펙의 예시(약 3,570만 ETH 스테이킹)를 보면, 최대 퇴출 처리량은 에포크당 256 ETH에서 256 + (544 − 256) × 3/2 = **에포크당 688 ETH**로 올라가며, 현재 상한의 약 2.5배입니다. 전체 churn, 즉 약한 주관성 기간은 변하지 않으며, 놀고 있던 통합 용량이 더는 낭비되지 않을 뿐입니다.\n\n## 샘플 코드\n\n스펙의 수정된 함수(Python, 합의 스펙 스타일):\n\n```python\ndef compute_exit_epoch_and_update_churn(state: BeaconState, exit_balance: Gwei) -\u003e Epoch:\n    activation_exit_epoch = compute_activation_exit_epoch(get_current_epoch(state))\n    earliest_exit_epoch = max(state.earliest_exit_epoch, activation_exit_epoch)\n\n    # NEW: use the consolidation queue if it is shorter\n    earliest_consolidation_epoch = max(state.earliest_consolidation_epoch, activation_exit_epoch)\n    if earliest_exit_epoch \u003e earliest_consolidation_epoch:\n        return compute_consolidation_epoch_and_update_churn(state, 2 * exit_balance // 3)\n\n    # Unchanged exit-queue logic below\n    per_epoch_churn = get_exit_churn_limit(state)\n    if state.earliest_exit_epoch \u003c earliest_exit_epoch:\n        exit_balance_to_consume = per_epoch_churn\n    else:\n        exit_balance_to_consume = state.exit_balance_to_consume\n    if exit_balance \u003e exit_balance_to_consume:\n        balance_to_process = exit_balance - exit_balance_to_consume\n        additional_epochs = (balance_to_process - 1) // per_epoch_churn + 1\n        earliest_exit_epoch += additional_epochs\n        exit_balance_to_consume += additional_epochs * per_epoch_churn\n    state.exit_balance_to_consume = exit_balance_to_consume - exit_balance\n    state.earliest_exit_epoch = earliest_exit_epoch\n    return state.earliest_exit_epoch\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 테스트 케이스는 아직 TODO이며, 합의 계층 하드포크가 필요합니다.\n- 스테이커의 도구는 달라지는 것이 없습니다. 퇴출은 여전히 평소 방식(자발적 퇴출 또는 [EIP-7002](/eip-7002/) 실행 계층 요청)으로 시작되며, 퇴출 에포크를 예약하는 방식만 다릅니다.\n- 퇴출이 통합 큐를 사용하면, 통합은 이제 그 churn을 공유하므로 더 오래 기다리게 됩니다.\n- 처리량 수치는 그 시점의 총 스테이킹량과 churn 파라미터에 따라 달라집니다. 688 ETH/에포크는 스펙의 예시이며 고정된 상수가 아닙니다.\n- 관련 churn 제안: [EIP-8061](/eip-8061/)(퇴출 및 통합 churn 증가)과 [EIP-7922](/eip-7922/)(동적 퇴출 큐 속도 제한).\n"},"zh":{"lang":"zh","tldr":"共识层变更草案：只要整合队列比退出队列短，就把验证者退出路由到整合队列，让每位质押者都能使用目前只有 2048 ETH 验证者才能用的捷径，在不削弱安全性的前提下提高最大退出吞吐量。","tags":["staking","consensus","validators","exits","withdrawals"],"related":[7251,7002,8061,7922],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8080/","markdown":"## 它解决什么问题？\n\n离开信标链的验证者要在**退出队列**中等待，退出“流失量”（churn）对其限速，以免验证者集合变化过快（这样可以保护弱主观性周期）。自 Pectra 起，还有一个单独的**整合队列**用于合并验证者，由 [EIP-7251](/eip-7251/) 引入。\n\n根据规范，退出队列长期超过四十天，而整合队列通常较短。持有至少 2048 ETH 的验证者可以利用整合逻辑中的漏洞，经由整合队列退出，从而插队。较小的验证者，包括无法发行流动性质押代币的个人质押者，则做不到。EIP-8080 把这条捷径向所有人开放，消除了这种不公平。\n\n## 它如何运作\n\n在共识规范函数 `compute_exit_epoch_and_update_churn` 的开头增加一个检查：\n\n- 如果最早可用的退出 epoch **晚于**最早可用的整合 epoch，则该退出改为通过整合队列来安排。\n- 它消耗的整合 churn 等于**退出余额的 2/3**，因为从弱主观性的角度看，一个单位的退出 churn 相当于 2/3 个单位的整合 churn。这使得无论整合 churn 被用于整合还是退出，对安全性的影响都完全相同。\n- 否则，退出的处理方式与之前完全一样。\n\n以规范自己的例子（约 3,570 万 ETH 被质押）来看，最大退出吞吐量会从每个 epoch 256 ETH 提高到 256 + (544 − 256) × 3/2 = **每个 epoch 688 ETH**，约为目前上限的 2.5 倍。总 churn，也就是弱主观性周期，并不改变；闲置的整合容量只是不再被浪费。\n\n## 示例代码\n\n规范中修改后的函数（Python，共识规范风格）：\n\n```python\ndef compute_exit_epoch_and_update_churn(state: BeaconState, exit_balance: Gwei) -\u003e Epoch:\n    activation_exit_epoch = compute_activation_exit_epoch(get_current_epoch(state))\n    earliest_exit_epoch = max(state.earliest_exit_epoch, activation_exit_epoch)\n\n    # NEW: use the consolidation queue if it is shorter\n    earliest_consolidation_epoch = max(state.earliest_consolidation_epoch, activation_exit_epoch)\n    if earliest_exit_epoch \u003e earliest_consolidation_epoch:\n        return compute_consolidation_epoch_and_update_churn(state, 2 * exit_balance // 3)\n\n    # Unchanged exit-queue logic below\n    per_epoch_churn = get_exit_churn_limit(state)\n    if state.earliest_exit_epoch \u003c earliest_exit_epoch:\n        exit_balance_to_consume = per_epoch_churn\n    else:\n        exit_balance_to_consume = state.exit_balance_to_consume\n    if exit_balance \u003e exit_balance_to_consume:\n        balance_to_process = exit_balance - exit_balance_to_consume\n        additional_epochs = (balance_to_process - 1) // per_epoch_churn + 1\n        earliest_exit_epoch += additional_epochs\n        exit_balance_to_consume += additional_epochs * per_epoch_churn\n    state.exit_balance_to_consume = exit_balance_to_consume - exit_balance\n    state.earliest_exit_epoch = earliest_exit_epoch\n    return state.earliest_exit_epoch\n```\n\n## 需要注意\n\n- **状态：Draft。** 测试用例仍是 TODO，并且需要一次共识层硬分叉。\n- 质押者的工具无需任何改变：退出仍以通常的方式触发（自愿退出或 [EIP-7002](/eip-7002/) 执行层请求）；不同的只是退出 epoch 的安排。\n- 当退出使用整合队列时，整合会等待更久，因为它们现在共享这部分 churn。\n- 吞吐量数字取决于当时的总质押量和 churn 参数；请把 688 ETH/epoch 视为规范给出的示例，而非固定常数。\n- 相关的 churn 提案：[EIP-8061](/eip-8061/)（提高退出和整合 churn）和 [EIP-7922](/eip-7922/)（动态退出队列速率限制）。\n"}}}
