From ec73f3ec33269207210471b3075c91cba9a5ca53 Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Wed, 28 Aug 2024 12:30:13 +0200 Subject: [PATCH] Revert extra logging changes --- x/ccv/provider/keeper/partial_set_security.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/x/ccv/provider/keeper/partial_set_security.go b/x/ccv/provider/keeper/partial_set_security.go index 03960df6bb..3112124724 100644 --- a/x/ccv/provider/keeper/partial_set_security.go +++ b/x/ccv/provider/keeper/partial_set_security.go @@ -333,7 +333,6 @@ func (k Keeper) FulfillsMinStake(ctx sdk.Context, chainID string, providerAddr t // ComputeNextValidators computes the validators for the upcoming epoch based on the currently `bondedValidators`. func (k Keeper) ComputeNextValidators(ctx sdk.Context, chainID string, bondedValidators []stakingtypes.Validator) []types.ConsensusValidator { - k.Logger(ctx).Info("Computing next validators", "chainID", chainID, "bondedValidators", bondedValidators) // sort the bonded validators by number of staked tokens in descending order sort.Slice(bondedValidators, func(i, j int) bool { return bondedValidators[i].GetBondedTokens().GT(bondedValidators[j].GetBondedTokens()) @@ -343,7 +342,6 @@ func (k Keeper) ComputeNextValidators(ctx sdk.Context, chainID string, bondedVal // since those are the ones that participate in consensus allowInactiveVals := k.AllowsInactiveValidators(ctx, chainID) if !allowInactiveVals { - k.Logger(ctx).Info("Inactive validators are not allowed", "chainID", chainID) // only leave the first MaxProviderConsensusValidators bonded validators maxProviderConsensusVals := k.GetMaxProviderConsensusValidators(ctx) if len(bondedValidators) > int(maxProviderConsensusVals) { @@ -356,11 +354,6 @@ func (k Keeper) ComputeNextValidators(ctx sdk.Context, chainID string, bondedVal return k.CanValidateChain(ctx, chainID, providerAddr) && k.FulfillsMinStake(ctx, chainID, providerAddr) }) - k.Logger(ctx).Info("Next validators after filter", "chainID", chainID, "nextValidators", nextValidators) - nextValidators = k.CapValidatorSet(ctx, chainID, nextValidators) - - k.Logger(ctx).Info("Next validators after capping validator set", "chainID", chainID, "nextValidators", nextValidators) - return k.CapValidatorsPower(ctx, chainID, nextValidators) }