From 8b49af108b474bc7b5580b942fc783dc0cd62493 Mon Sep 17 00:00:00 2001 From: Karolos Antoniadis Date: Mon, 11 Sep 2023 22:19:32 +0200 Subject: [PATCH] add fixme --- x/ccv/provider/keeper/double_vote.go | 2 +- x/ccv/provider/keeper/misbehaviour.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/x/ccv/provider/keeper/double_vote.go b/x/ccv/provider/keeper/double_vote.go index 0fa03c3fc0..01f2536df4 100644 --- a/x/ccv/provider/keeper/double_vote.go +++ b/x/ccv/provider/keeper/double_vote.go @@ -37,7 +37,7 @@ func (k Keeper) HandleConsumerDoubleVoting( k.SlashValidator(ctx, providerAddr) k.JailAndTombstoneValidator(ctx, providerAddr) - // verify the following values + // FIXME: verify the following values var equivocation exported.Evidence = &evidencetypes.Equivocation{ Height: evidence.Height(), Time: evidence.Time(), diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index 2be3c63cf2..ff2ed83dca 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -50,11 +50,10 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty // FIXME: it would be nice to set the evidence but not sure what this would mean // for light client attacks. var evidence exported.Evidence = &evidencetypes.Equivocation{ - // FIXME Height: int64(misbehaviour.Header1.GetHeight().GetRevisionHeight()), Time: misbehaviour.Header2.GetTime(), - Power: 0, // misbehaviour.Header1.ValidatorSet.Validators - ConsensusAddress: "hola!", //misbehaviour.Header1.ValidatorSet.Proposer.Address + Power: 0, + ConsensusAddress: "!", } k.evidenceKeeper.SetEvidence(ctx, evidence)