From eed4d02be934c923db76f27d210fa2fbb32b8954 Mon Sep 17 00:00:00 2001 From: tnasu Date: Wed, 22 Dec 2021 11:34:44 +0900 Subject: [PATCH] Revert evidence/pool.go in `Support for VRF implementation with libsodium (#297)` --- evidence/pool.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)