EIP-8015 · Draft(草案) · Core(核心) · 2025-08-22
EIP-8015: Remove `deposit` and `eth1data` fields
清理信标链:删除已不再使用的 `eth1_data` 和 `deposits` 区块字段、Eth1 投票机制以及四个状态字段,因为存款现在改由 EIP-6110 的请求传入。
它解决什么问题?
最初,信标链是通过让区块提议者对执行链存款合约的状态(eth1_data)进行投票,再把存款本身连同 Merkle 证明放进区块,来获知新的验证者存款的。EIP-6110 取代了这种做法:存款现在由执行层以请求的形式传入(通过 EIP-7685),无需投票。
过渡期间,两种机制必须并存。一旦所有旧存款都已处理完毕,旧字段就成了累赘:它们仍然存在于每个区块和信标状态中,客户端也仍要携带投票相关代码。Fulu 分叉已经要求 body.deposits 必须为空。EIP-8015 删除剩下的部分。
它如何运作
激活需要两个条件:EIP-6110 的过渡必须已经完成(state.eth1_deposit_index == state.deposit_requests_start_index),并且 Glamsterdam 升级(EIP-7773)必须已经生效。
从 BeaconBlockBody 中删除:
eth1_datadeposits
从 BeaconState 中删除:
eth1_data、eth1_data_votes、eth1_deposit_index、deposit_requests_start_index
删除的逻辑:
- 区块处理中的
process_eth1_data(),以及process_operations中"存款为空"的断言 - 纪元处理中的
process_eth1_data_reset() - 诚实验证者职责中的 Eth1 数据轮询和
get_eth1_vote
这两个容器都是 SSZ ProgressiveContainer(EIP-7688)。字段通过清除 active_fields 中对应的位来"删除",因此其余每个字段都保持原有的广义索引,针对这些字段的现有 Merkle 证明仍然可以验证。
示例代码
变更后的区块体(consensus-spec Python);为 0 的位标记被删除的字段:
class BeaconBlockBody(
ProgressiveContainer(active_fields=[1] + [0] + [1] * 4 + [0] + [1] * 6)
):
randao_reveal: BLSSignature
# removed: eth1_data
graffiti: Bytes32
proposer_slashings: ProgressiveList[ProposerSlashing]
attester_slashings: ProgressiveList[AttesterSlashing]
attestations: ProgressiveList[Attestation]
# removed: deposits
voluntary_exits: ProgressiveList[SignedVoluntaryExit]
sync_aggregate: SyncAggregate
bls_to_execution_changes: ProgressiveList[SignedBLSToExecutionChange]
signed_execution_payload_bid: SignedExecutionPayloadBid
payload_attestations: ProgressiveList[PayloadAttestation]
parent_execution_requests: ExecutionRequests
需要注意
- 状态:Draft。 它依赖 EIP-7688 和 EIP-7773,而这两者本身仍处于 Review 状态。
- 对质押者没有任何变化:存款仍然发往存款合约,并通过 EIP-6110 处理。
- 历史区块和状态保持其原有的模式,仍然可以验证。
- 从信标 API 或状态中读取
eth1_data或eth1_deposit_index的工具需要更新。