EIP-8015 - Remove `deposit` and `eth1data` fields

Created 2025-08-22
Status Draft
Category Core
Type Standards Track
Authors
Requires

Abstract

This EIP removes the legacy deposits and eth1_data fields from the BeaconBlockBody structure after EIP-6110 has been fully finalized. These fields become obsolete once all validators have transitioned to the new in-protocol deposit processing mechanism introduced in EIP-6110.

Motivation

EIP-6110 introduced in-protocol deposit processing by moving validator deposits to the execution layer as part of the EIP-7685 request framework. This change eliminated the need for the consensus layer's proposer voting mechanism for deposits. However, during the transition period, both the legacy deposit mechanism (using deposits and eth1_data fields) and the new mechanism coexist to ensure smooth migration.

Once EIP-6110 has been fully finalized and the transition period is complete (when state.eth1_deposit_index == state.deposit_requests_start_index), the legacy deposit fields become permanently unused and can be safely removed. This cleanup provides several benefits:

Specification

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174.

Consensus Layer

Activation Conditions

This EIP SHALL only be activated when both of the following conditions are met:

  1. EIP-6110 has been fully finalized: state.eth1_deposit_index == state.deposit_requests_start_index
  2. EIP-7732 is in effect

BeaconBlockBody Modifications

The BeaconBlockBody container is modified to remove the following fields:

Removed fields: - deposits: List[Deposit, MAX_DEPOSITS] - eth1_data: Eth1Data

The updated BeaconBlockBody structure becomes:

class BeaconBlockBody(Container):
    randao_reveal: BLSSignature
    graffiti: Bytes32
    proposer_slashings: List[ProposerSlashing, MAX_PROPOSER_SLASHINGS]
    attester_slashings: List[AttesterSlashing, MAX_ATTESTER_SLASHINGS_ELECTRA]
    attestations: List[Attestation, MAX_ATTESTATIONS_ELECTRA]
    voluntary_exits: List[SignedVoluntaryExit, MAX_VOLUNTARY_EXITS]
    sync_aggregate: SyncAggregate
    bls_to_execution_changes: List[SignedBLSToExecutionChange, MAX_BLS_TO_EXECUTION_CHANGES]
    # From EIP-7732
    signed_execution_payload_header: SignedExecutionPayloadHeader
    payload_attestations: List[PayloadAttestation, MAX_PAYLOAD_ATTESTATIONS]

Validation Changes

Block processing modifications:

  1. Remove process_eth1_data() function calls from block processing
  2. Remove process_deposits() function calls from block processing
  3. Remove eth1_data voting validation logic
  4. Remove legacy deposit validation logic

State transition modifications:

  1. Remove eth1_data related fields from state transition functions
  2. Remove legacy deposit processing from process_operations()

BeaconState Cleanup

The following fields become unused after activation and MAY be removed in future updates:

Note: These fields are kept for historical state root verification but are no longer actively used.

Rationale

Timing of Removal

The fields are removed after EIP-6110 finalization to ensure:

Dependency on EIP-7732

This EIP requires EIP-7732 because:

Backwards Compatibility

Security Considerations

The removal of legacy fields poses minimal security risk because:

Copyright

Copyright and related rights waived via CC0.