Skip to content

Commit

Permalink
Fix PartitionBasedOnPriorityList function
Browse files Browse the repository at this point in the history
  • Loading branch information
kirdatatjana committed Oct 24, 2024
1 parent ba04ab8 commit d5d043b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x/ccv/provider/keeper/power_shaping.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,6 @@ func (k Keeper) UpdatePrioritylist(ctx sdk.Context, consumerId string, priorityl
// PartitionBasedOnPriorityList filters the priority list to include only validators that can validate the chain
// and splits the validators into priority and non-priority sets.
func (k Keeper) PartitionBasedOnPriorityList(ctx sdk.Context, consumerId string, nextValidators []types.ConsensusValidator) ([]types.ConsensusValidator, []types.ConsensusValidator) {
validatorMap := make(map[string]types.ConsensusValidator)
for _, v := range nextValidators {
validatorMap[string(v.ProviderConsAddr)] = v
}

priorityValidators := make([]types.ConsensusValidator, 0)
nonPriorityValidators := make([]types.ConsensusValidator, 0)
Expand Down

0 comments on commit d5d043b

Please sign in to comment.