From 76e01b7954f3d4974d24c2c7d132af8804dcb754 Mon Sep 17 00:00:00 2001 From: stana-ethernal Date: Tue, 26 Nov 2024 13:37:48 +0100 Subject: [PATCH] comment fix --- testutil/keeper/expectations.go | 2 +- x/ccv/provider/keeper/infraction_parameters.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testutil/keeper/expectations.go b/testutil/keeper/expectations.go index d5bf6ac9ea..52221cf283 100644 --- a/testutil/keeper/expectations.go +++ b/testutil/keeper/expectations.go @@ -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{ diff --git a/x/ccv/provider/keeper/infraction_parameters.go b/x/ccv/provider/keeper/infraction_parameters.go index 5dd63f3849..8abf21a5b6 100644 --- a/x/ccv/provider/keeper/infraction_parameters.go +++ b/x/ccv/provider/keeper/infraction_parameters.go @@ -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.