validatorranges

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

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 (*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.

func (*Resolver) Start

func (r *Resolver) Start(ctx context.Context)

Start loads ranges and, if a URL is configured, refreshes every 5 minutes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL