Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Dec 5, 2022
1 parent c238f4b commit 5b8d2c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/ccv/provider/keeper/throttle.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ func (k Keeper) GetSlashMeterAllowance(ctx sdktypes.Context) sdktypes.Int {

roundedInt := sdktypes.NewInt(decFrac.MulInt(totalPower).RoundInt64())
if roundedInt.IsZero() {
// TODO: Log warning that replenish fraction is too small to
// add any allowance to the meter, considering bankers rounding.
k.Logger(ctx).Info("slash meter replenish fraction is too small " +
"to add any allowance to the meter, considering bankers rounding")

// Return non-zero allowance to guarantee some slash packets are eventually handled
return sdktypes.NewInt(1)
Expand Down

0 comments on commit 5b8d2c7

Please sign in to comment.