Skip to content

Commit

Permalink
Update comment x/meshsecurity/keeper/adapter.go
Browse files Browse the repository at this point in the history
Co-authored-by: Mauro Lacy <[email protected]>
  • Loading branch information
DongLieu and maurolacy authored Jul 3, 2024
1 parent b6c606f commit b28fb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/meshsecurity/keeper/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (s StakingDecorator) Slash(ctx sdk.Context, consAddr sdk.ConsAddress, power
if val == nil {
ModuleLogger(ctx).
Error("can not propagate slash: validator not found", "validator", consAddr.String())
// todo: add TimeInfraction
// TODO: add TimeInfraction (Needs to be gathered from the caller)
} else if err := s.k.ScheduleSlashed(ctx, val.GetOperator(), power, height, totalSlashAmount, slashRatio, time.Unix(0, 0)); err != nil {
ModuleLogger(ctx).
Error("can not propagate slash: schedule event",
Expand Down

0 comments on commit b28fb87

Please sign in to comment.