Skip to content

Commit

Permalink
add log when setting tomstone to true for downtime
Browse files Browse the repository at this point in the history
  • Loading branch information
stana-miric committed Dec 13, 2024
1 parent d7e2f7e commit 8e9dfcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/ccv/provider/keeper/infraction_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ func (k Keeper) SetInfractionParameters(ctx sdk.Context, consumerId string, para
return fmt.Errorf("failed to marshal infraction parameters (%+v) for consumer id (%s): %w", parameters, consumerId, err)
}

if parameters.Downtime.Tombstone {
k.Logger(ctx).Info("tombstone field is ignored for downtime infractions; setting it to true for consumer ID (%s) will have no effect", consumerId)
}

store.Set(types.ConsumerIdToInfractionParametersKey(consumerId), bz)

return nil
Expand Down

0 comments on commit 8e9dfcd

Please sign in to comment.