From 6fa64fae9b329b4408aa59e31e8e6aa54443a85e Mon Sep 17 00:00:00 2001 From: insumity Date: Thu, 15 Feb 2024 10:44:04 +0100 Subject: [PATCH] nit changes --- x/ccv/provider/keeper/key_assignment_test.go | 5 ++++- x/ccv/provider/keeper/proposal.go | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/x/ccv/provider/keeper/key_assignment_test.go b/x/ccv/provider/keeper/key_assignment_test.go index e532fb0108..cb8f245941 100644 --- a/x/ccv/provider/keeper/key_assignment_test.go +++ b/x/ccv/provider/keeper/key_assignment_test.go @@ -828,7 +828,10 @@ func TestSimulatedAssignmentsAndUpdateApplication(t *testing.T) { // and increment the provider vscid. applyUpdatesAndIncrementVSCID := func(updates []abci.ValidatorUpdate) { providerValset.apply(updates) - updates = k.MustApplyKeyAssignmentToValUpdates(ctx, CHAINID, updates, func(address types.ProviderConsAddress) bool { return true }) + updates = k.MustApplyKeyAssignmentToValUpdates(ctx, CHAINID, updates, + func(address types.ProviderConsAddress) bool { + return true + }) consumerValset.apply(updates) // Simulate the VSCID update in EndBlock k.IncrementValidatorSetUpdateId(ctx) diff --git a/x/ccv/provider/keeper/proposal.go b/x/ccv/provider/keeper/proposal.go index c63076284b..0e54a5ca21 100644 --- a/x/ccv/provider/keeper/proposal.go +++ b/x/ccv/provider/keeper/proposal.go @@ -291,8 +291,8 @@ func (k Keeper) MakeConsumerGenesis( return true }) - //nextValidators := k.ComputeNextValidators(ctx, currentValidators, validatorsToAdd, validatorsToRemove) - //k.ResetCurrentValidators(ctx, chainID, nextValidators) + // nextValidators := k.ComputeNextValidators(ctx, currentValidators, validatorsToAdd, validatorsToRemove) + // k.ResetCurrentValidators(ctx, chainID, nextValidators) // Get a hash of the consumer validator set from the update with applied consumer assigned keys updatesAsValSet, err := tmtypes.PB2TM.ValidatorUpdates(initialUpdatesWithConsumerKeys)