Versions in this module Expand all Collapse all v1 v1.8.4 Feb 22, 2022 v1.8.3 Feb 22, 2022 Changes in this version + type Benchable interface + Benched func(chainID ids.ID, validatorID ids.ShortID) + Unbenched func(chainID ids.ID, validatorID ids.ShortID) + type Benchlist interface + IsBenched func(validatorID ids.ShortID) bool + RegisterFailure func(validatorID ids.ShortID) + RegisterResponse func(validatorID ids.ShortID) + func NewBenchlist(chainID ids.ID, log logging.Logger, benchable Benchable, ...) (Benchlist, error) + type Config struct + Benchable Benchable + Duration time.Duration + MaxPortion float64 + MinimumFailingDuration time.Duration + PeerSummaryEnabled bool + StakingEnabled bool + Threshold int + Validators validators.Manager + type Manager interface + GetBenched func(validatorID ids.ShortID) []ids.ID + IsBenched func(validatorID ids.ShortID, chainID ids.ID) bool + RegisterChain func(ctx *snow.ConsensusContext) error + RegisterFailure func(chainID ids.ID, validatorID ids.ShortID) + RegisterResponse func(chainID ids.ID, validatorID ids.ShortID) + func NewManager(config *Config) Manager + func NewNoBenchlist() Manager + type TestBenchable struct + BenchedF func(chainID ids.ID, validatorID ids.ShortID) + CantBenched bool + CantUnbenched bool + T *testing.T + UnbenchedF func(chainID ids.ID, validatorID ids.ShortID) + func (b *TestBenchable) Benched(chainID ids.ID, validatorID ids.ShortID) + func (b *TestBenchable) Default(cant bool) + func (b *TestBenchable) Unbenched(chainID ids.ID, validatorID ids.ShortID)