-
Notifications
You must be signed in to change notification settings - Fork 37
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
fix: separate out validators who are awaiting activation queue #124
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this changes "status", just need to see that what the web app reports is similar to this
This also changes |
@@ -197,7 +201,7 @@ func SortByStatus(validators map[string]Validator) ([]Validator, []Validator, [] | |||
return withdrawnValidators[i].Index < withdrawnValidators[j].Index | |||
}) | |||
|
|||
return inactiveValidators, activeValidators, withdrawnValidators | |||
return awaitingActivationQueueValidators, inactiveValidators, activeValidators, withdrawnValidators |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you're gonna add a new return group to this function signature, i would probably put it at the end right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was going for "lifecycle" here, since the left-most validators would occur earliest and then progress left to right
@@ -444,7 +466,8 @@ func SelectAwaitingCredentialValidators( | |||
validatorInfo := validatorInfos[i] | |||
|
|||
if (validatorInfo.Status == ValidatorStatusInactive) && | |||
(validator.Validator.ExitEpoch == FAR_FUTURE_EPOCH) { | |||
(validator.Validator.ExitEpoch == FAR_FUTURE_EPOCH) && | |||
(validator.Validator.ActivationEpoch != FAR_FUTURE_EPOCH) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the actual change, yeah?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Related to core PR: Layr-Labs/eigenlayer-contracts#668