mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-14 14:08:19 +00:00
Log warn and cont if validator pub key not exist in DB (#4429)
* log warn and cont * assignment * fixed * Merge refs/heads/master into log-warn-cont
This commit is contained in:
parent
c7ae03e1b2
commit
f764522cbe
@ -261,7 +261,8 @@ func (v *validator) UpdateAssignments(ctx context.Context, slot uint64) error {
|
||||
// TODO(4379): Make validator index part of the assignment respond.
|
||||
res, err := v.validatorClient.ValidatorIndex(ctx, &pb.ValidatorIndexRequest{PublicKey: assignment.PublicKey})
|
||||
if err != nil {
|
||||
return err
|
||||
log.Warnf("Validator pub key %#x does not exist in beacon node", bytesutil.Trunc(assignment.PublicKey))
|
||||
continue
|
||||
}
|
||||
v.pubKeyToID[bytesutil.ToBytes48(assignment.PublicKey)] = res.Index
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user