Skip to content

[spec test]: Ensure duplicate deposits are handled successfully during electra epoch processing #4021

@ralexstokes

Description

@ralexstokes

We may already have a test case for this, but we should verify and write one if we don't.

This issue is coming from a bug on mekong where three clients incorrectly handled the following scenario:

Two deposits to the same validator in an epoch (the mekong setting had a deposit in one block and then another two blocks later to the same validator). The first deposit was fresh (aka the validator was not on-chain beforehand), and the second would be considered a "top-up".

During epoch processing, we had two separate issues:

  1. The two deposits were treated as one (e.g. for two deposits of 32 ETH, the resulting state only had one validator of 32 ETH, instead of 64 ETH).
  2. The same validator was added to the state's registry twice, one for each deposit (rather than one validator with the balance summing the amount in each deposit).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions