mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 03:51:29 +00:00
Unify validator status response in RPC (#10128)
This commit is contained in:
parent
943dec525c
commit
72817a6d0e
@ -491,6 +491,9 @@ func (is *infostream) calculateStatusAndTransition(validator state.ReadOnlyValid
|
||||
}
|
||||
|
||||
if currentEpoch < validator.ActivationEligibilityEpoch() {
|
||||
if validator.EffectiveBalance() == 0 {
|
||||
return ethpb.ValidatorStatus_PENDING, 0
|
||||
}
|
||||
if helpers.IsEligibleForActivationQueueUsingTrie(validator) {
|
||||
return ethpb.ValidatorStatus_DEPOSITED, is.epochToTimestamp(validator.ActivationEligibilityEpoch())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user