Skip to content

Commit

Permalink
add fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
insumity committed Sep 11, 2023
1 parent dfef410 commit 8b49af1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/double_vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
5 changes: 2 additions & 3 deletions x/ccv/provider/keeper/misbehaviour.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b49af1

Please sign in to comment.