Skip to content

Commit

Permalink
Merge pull request #1164 from lavanet/CNS-760-remove-freeze-from-conf…
Browse files Browse the repository at this point in the history
…lict

CNS-760: removed freeze from conflict
  • Loading branch information
Yaroms authored Jan 24, 2024
2 parents 5f2d89e + cd3b67c commit 551666c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions x/conflict/keeper/vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,12 @@ func (k Keeper) HandleAndCloseVote(ctx sdk.Context, conflictVote types.ConflictV
utils.LavaFormatWarning("slashing failed at vote conflict", err)
}

err = k.pairingKeeper.FreezeProvider(ctx, vote.Address, []string{conflictVote.ChainID}, types.UnstakeDescriptionFraudVote)
if err != nil {
utils.LavaFormatWarning("unstaking fraud voter failed", err)
continue
}
// TODO: uncomment this when conflict is more stable
// err = k.pairingKeeper.FreezeProvider(ctx, vote.Address, []string{conflictVote.ChainID}, types.UnstakeDescriptionFraudVote)
// if err != nil {
// utils.LavaFormatWarning("unstaking fraud voter failed", err)
// continue
// }
}
}
}
Expand Down

0 comments on commit 551666c

Please sign in to comment.