From f764522cbead4ba6b3fdf1044edbbbd2d0855d78 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Mon, 6 Jan 2020 13:16:36 -0800 Subject: [PATCH] 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 --- validator/client/validator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/validator/client/validator.go b/validator/client/validator.go index 66c01c238..f08d257a9 100644 --- a/validator/client/validator.go +++ b/validator/client/validator.go @@ -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 }