From ab40a112c5acbeb01cf06a6d209b01609459a571 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Mon, 19 Oct 2020 10:03:27 -0700 Subject: [PATCH] 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> --- beacon-chain/sync/validate_beacon_attestation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon-chain/sync/validate_beacon_attestation.go b/beacon-chain/sync/validate_beacon_attestation.go index 1aca82e55..650150460 100644 --- a/beacon-chain/sync/validate_beacon_attestation.go +++ b/beacon-chain/sync/validate_beacon_attestation.go @@ -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 }