mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
Return error instead of logging (#4039)
This commit is contained in:
parent
0077654fb5
commit
499f05f34b
@ -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.
|
// Use the target state to to validate attestation and calculate the committees.
|
||||||
indexedAtt, err := s.verifyAttestation(ctx, baseState, a)
|
indexedAtt, err := s.verifyAttestation(ctx, baseState, a)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithError(err).Warn("Removing attestation from queue.")
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update every validator's latest vote.
|
// Update every validator's latest vote.
|
||||||
|
Loading…
Reference in New Issue
Block a user