Return error instead of logging (#4039)

This commit is contained in:
terence tsao 2019-11-18 14:09:26 -08:00 committed by GitHub
parent 0077654fb5
commit 499f05f34b

View File

@ -89,7 +89,7 @@ func (s *Store) OnAttestation(ctx context.Context, a *ethpb.Attestation) error {
// Use the target state to to validate attestation and calculate the committees.
indexedAtt, err := s.verifyAttestation(ctx, baseState, a)
if err != nil {
log.WithError(err).Warn("Removing attestation from queue.")
return err
}
// Update every validator's latest vote.