mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
fix metric for exited validator (#13379)
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
This commit is contained in:
parent
7e65378f63
commit
c41a54be9d
@ -582,6 +582,11 @@ func (v *validator) UpdateDuties(ctx context.Context, slot primitives.Slot) erro
|
||||
return err
|
||||
}
|
||||
|
||||
v.dutiesLock.Lock()
|
||||
v.duties = resp
|
||||
v.logDuties(slot, v.duties.CurrentEpochDuties, v.duties.NextEpochDuties)
|
||||
v.dutiesLock.Unlock()
|
||||
|
||||
allExitedCounter := 0
|
||||
for i := range resp.CurrentEpochDuties {
|
||||
if resp.CurrentEpochDuties[i].Status == ethpb.ValidatorStatus_EXITED {
|
||||
@ -592,11 +597,6 @@ func (v *validator) UpdateDuties(ctx context.Context, slot primitives.Slot) erro
|
||||
return ErrValidatorsAllExited
|
||||
}
|
||||
|
||||
v.dutiesLock.Lock()
|
||||
v.duties = resp
|
||||
v.logDuties(slot, v.duties.CurrentEpochDuties, v.duties.NextEpochDuties)
|
||||
v.dutiesLock.Unlock()
|
||||
|
||||
// Non-blocking call for beacon node to start subscriptions for aggregators.
|
||||
// Make sure to copy metadata into a new context
|
||||
md, exists := metadata.FromOutgoingContext(ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user