Skip to content

Commit

Permalink
istanbul: Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
blukat29 committed Apr 25, 2024
1 parent 76fb2e5 commit 489b78c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions consensus/istanbul/validator/weighted.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,6 @@ func (valSet *weightedCouncil) ReplaceValidators(vals []istanbul.Validator) bool
return true
}

func (valSet *weightedCouncil) GetValidators() []istanbul.Validator {
return valSet.validators
}

func (valSet *weightedCouncil) Copy() istanbul.ValidatorSet {
valSet.validatorMu.RLock()
defer valSet.validatorMu.RUnlock()
Expand Down Expand Up @@ -783,8 +779,8 @@ func filterValidators(isSingleMode bool, govNodeAddr common.Address, weightedVal

// getStakingAmountsOfValidators calculates stakingAmounts of validators.
// If validators have multiple staking contracts, stakingAmounts will be a sum of stakingAmounts with the same rewardAddress.
// - []*weightedValidator : a list of validators which type is converted to weightedValidator
// - []float64 : a list of stakingAmounts.
// - []*weightedValidator : a list of validators which type is converted to weightedValidator
// - []float64 : a list of stakingAmounts.
func getStakingAmountsOfValidators(validators istanbul.Validators, stakingInfo *reward.StakingInfo) ([]*weightedValidator, []float64, error) {
nVals := len(validators)
weightedVals := make([]*weightedValidator, nVals)
Expand Down

0 comments on commit 489b78c

Please sign in to comment.