Skip to content

Commit

Permalink
comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stana-miric committed Nov 26, 2024
1 parent 6d9f644 commit 76e01b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testutil/keeper/expectations.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func GetMocksForDeleteConsumerChain(ctx sdk.Context, mocks *MockedKeepers) []*go

func GetMocksForHandleSlashPacket(ctx sdk.Context, mocks MockedKeepers,
expectedProviderValConsAddr providertypes.ProviderConsAddress,
valToReturn stakingtypes.Validator, expectJailing bool, valAddr []byte,
valToReturn stakingtypes.Validator, expectJailing bool,
) []*gomock.Call {
// These first two calls are always made.
calls := []*gomock.Call{
Expand Down
4 changes: 2 additions & 2 deletions x/ccv/provider/keeper/infraction_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ func (k Keeper) RemoveConsumerInfractionQueuedData(ctx sdk.Context, consumerId s

// UpdateQueuedInfractionParams updates the infraction parameters in the time queue.
// Parameters for the specific consumer already exist in the queue:
// - If the new parameters are the same as the current queued parameters, the existing entry is removed to cancel the update.
// - If the new parameters are different, the existing entry is removed and new entry is added to the queue to schedule the update.
// - If the new parameters are the same as the current infraction parameters, the existing queued entry is removed to cancel the update.
// - If the new parameters are different from both queued and current parameters, the existing entry is removed and new entry is added to the queue to schedule the update.
//
// Parameters for the specific consumer do not exist in the update queue and the new parameters differ from the consumer current infraction parameters,
// a new entry is added to the queue to schedule the update.
Expand Down

0 comments on commit 76e01b7

Please sign in to comment.