Skip to content

Commit

Permalink
Added a comment in CapValidatorSet function
Browse files Browse the repository at this point in the history
  • Loading branch information
kirdatatjana committed Oct 25, 2024
1 parent 0b38ed4 commit a1d974d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions x/ccv/provider/client/legacy_proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ type ConsumerAdditionProposalJSON struct {
Denylist []string `json:"denylist"`
MinStake uint64 `json:"min_stake"`
AllowInactiveVals bool `json:"allow_inactive_vals"`
Prioritylist []string `json:"prioritylist"`
}

type ConsumerAdditionProposalReq struct {
Expand Down Expand Up @@ -177,7 +176,6 @@ type ConsumerModificationProposalJSON struct {
Denylist []string `json:"denylist"`
MinStake uint64 `json:"min_stake"`
AllowInactiveVals bool `json:"allow_inactive_vals"`
Prioritylist []string `json:"prioritylist"`

Deposit string `json:"deposit"`
}
Expand Down
1 change: 1 addition & 0 deletions x/ccv/provider/keeper/power_shaping.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (k Keeper) CapValidatorSet(

validatorSetCap := powerShapingParameters.ValidatorSetCap
if validatorSetCap != 0 && int(validatorSetCap) < len(validators) {
// validators are already sorted by priority and power
return validators[:int(validatorSetCap)]
} else {
return validators
Expand Down

0 comments on commit a1d974d

Please sign in to comment.