Log warn and cont if validator pub key not exist in DB ()

* log warn and cont
* assignment
* fixed
* Merge refs/heads/master into log-warn-cont
This commit is contained in:
terence tsao 2020-01-06 13:16:36 -08:00 committed by prylabs-bulldozer[bot]
parent c7ae03e1b2
commit f764522cbe

View File

@ -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
}