Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver maps validator indices to client names using configured ranges.
func NewResolver ¶
func NewResolver(cfg *config.ValidatorRangesConfig, log logrus.FieldLogger) *Resolver
func (*Resolver) GetClientName ¶
func (r *Resolver) GetClientName(index phase0.ValidatorIndex) string
GetClientName returns the client name for the given validator index, or "" if not found. Ranges are kept sorted by start index (see applyRanges), so the lookup is a binary search — bulk callers (e.g. the head-vote heatmap grouping thousands of attesters) stay cheap.
Click to show internal directories.
Click to hide internal directories.