diff --git a/evidence/pool.go b/evidence/pool.go index de85e6d98..373108cac 100644 --- a/evidence/pool.go +++ b/evidence/pool.go @@ -270,15 +270,14 @@ func (evpool *Pool) fastCheck(ev types.Evidence) bool { evpool.logger.Error("Failed to load light client attack evidence", "err", err, "key(height/hash)", key) return false } - var trustedPbEv tmproto.Evidence - err = trustedPbEv.Unmarshal(evBytes) - trustedPb := trustedPbEv.GetLightClientAttackEvidence() + var trustedPb tmproto.LightClientAttackEvidence + err = trustedPb.Unmarshal(evBytes) if err != nil { evpool.logger.Error("Failed to convert light client attack evidence from bytes", "err", err, "key(height/hash)", key) return false } - trustedEv, err := types.LightClientAttackEvidenceFromProto(trustedPb) + trustedEv, err := types.LightClientAttackEvidenceFromProto(&trustedPb) if err != nil { evpool.logger.Error("Failed to convert light client attack evidence from protobuf", "err", err, "key(height/hash)", key)