Print the underlying error when attestation fails to get pre state (#7567)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Preston Van Loon 2020-10-19 10:03:27 -07:00 committed by GitHub
parent 329fbff814
commit ab40a112c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,7 @@ func (s *Service) validateCommitteeIndexBeaconAttestation(ctx context.Context, p
preState, err := s.chain.AttestationPreState(ctx, att)
if err != nil {
log.Error("Failed to retrieve pre state")
log.WithError(err).Error("Failed to retrieve pre state")
traceutil.AnnotateError(span, err)
return pubsub.ValidationIgnore
}