Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pending validator count reflects partially deposited validators #6063

Closed
prestonvanloon opened this issue May 31, 2020 · 5 comments · Fixed by #7071
Closed

Pending validator count reflects partially deposited validators #6063

prestonvanloon opened this issue May 31, 2020 · 5 comments · Fixed by #7071
Labels
Bug Something isn't working Good First Issue Good for newcomers Help Wanted Extra attention is needed Priority: Medium Medium priority item
Milestone

Comments

@prestonvanloon
Copy link
Member

🐞 Bug Report

Description

There seem to be validators which have sent the minimum deposit value (1 ETH). These validators are not eligible for activation and are in a "pending" state. Typically, the "pending" state is understood as being in queue for activation. As such, this UX is causing some confusion for users trying to understand the queue size and their position in queue.

image

Prometheus report

Screenshot from 2020-05-31 11-13-23

Etherscan

@0xKiwi
Copy link
Contributor

0xKiwi commented Jun 4, 2020

How should we go about this? This appears to be a gap in our determination of validator status.

@prestonvanloon
Copy link
Member Author

We will need another status value.

Here are the statuses we have at the moment:

enum ValidatorStatus {
  UNKNOWN_STATUS = 0;
  DEPOSITED = 1;
  PENDING = 2;
  ACTIVE = 3;
  EXITING = 4;
  SLASHING = 5;
  EXITED = 6;
}

To fix this, we can add a new enum value and clarify PENDING with a more strict definition.

  • PENDING -- The validator is fully deposited and in the activation queue.
  • PARTIALLY_DEPOSITED -- The validator has not met the deposit threshold.

@prestonvanloon prestonvanloon added the Bug Something isn't working label Jun 8, 2020
@prestonvanloon prestonvanloon added this to the Diamond milestone Jun 8, 2020
@0xKiwi 0xKiwi added the Priority: Medium Medium priority item label Jun 29, 2020
@prestonvanloon prestonvanloon added Good First Issue Good for newcomers Help Wanted Extra attention is needed labels Jul 23, 2020
@michaelhly
Copy link
Contributor

michaelhly commented Aug 11, 2020

I can work on this. We just need to check for deposit amount < 32 ETH (in wei) here:

case ethpb.ValidatorStatus_UNKNOWN_STATUS:

and return the PARTIALLY_DEPOSITEDstatus right?

@rauljordan
Copy link
Contributor

@michaelhly what's the status on this one, how can we help?

@michaelhly
Copy link
Contributor

@rauljordan Sorry, was a bit busy this week. Let me publish my PR. Just need to write tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Good First Issue Good for newcomers Help Wanted Extra attention is needed Priority: Medium Medium priority item
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants