Skip to content

Commit

Permalink
Revert evidence/pool.go in `Support for VRF implementation with libso…
Browse files Browse the repository at this point in the history
…dium (#297)`
  • Loading branch information
tnasu committed Dec 23, 2021
1 parent 3663fda commit eed4d02
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions evidence/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eed4d02

Please sign in to comment.