Versions in this module Expand all Collapse all v1 v1.11.11 Aug 6, 2024 Changes in this version + type Benchable interface + Benched func(chainID ids.ID, validatorID ids.NodeID) + Unbenched func(chainID ids.ID, validatorID ids.NodeID) + type Benchlist interface + IsBenched func(nodeID ids.NodeID) bool + RegisterFailure func(nodeID ids.NodeID) + RegisterResponse func(nodeID ids.NodeID) + func NewBenchlist(ctx *snow.ConsensusContext, benchable Benchable, validators validators.Manager, ...) (Benchlist, error) + type Config struct + Benchable Benchable + BenchlistRegisterer metrics.MultiGatherer + Duration time.Duration + MaxPortion float64 + MinimumFailingDuration time.Duration + Threshold int + Validators validators.Manager + type Manager interface + GetBenched func(nodeID ids.NodeID) []ids.ID + IsBenched func(nodeID ids.NodeID, chainID ids.ID) bool + RegisterChain func(ctx *snow.ConsensusContext) error + RegisterFailure func(chainID ids.ID, nodeID ids.NodeID) + RegisterResponse func(chainID ids.ID, nodeID ids.NodeID) + func NewManager(config *Config) Manager + func NewNoBenchlist() Manager