validatorsmanager

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package validatorsmanager is a package that manages validator information, primarily from local information and backed by the data from a beacon node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// RefreshValidatorsFromBeaconNode refreshes the local store from the beacon node.
	// This is an expensive operation, and should not be called in the validating path.
	RefreshValidatorsFromBeaconNode(ctx context.Context, pubKeys []phase0.BLSPubKey) error

	// ValidatorsByIndex fetches the requested validators from local store given their indices.
	ValidatorsByIndex(ctx context.Context, indices []phase0.ValidatorIndex) map[phase0.ValidatorIndex]*phase0.Validator

	// ValidatorsByPubKey fetches the requested validators from local store given their public keys.
	ValidatorsByPubKey(ctx context.Context, pubKeys []phase0.BLSPubKey) map[phase0.ValidatorIndex]*phase0.Validator

	// ValidatorStateAtEpoch returns the given validator's state at the given epoch.
	ValidatorStateAtEpoch(ctx context.Context, index phase0.ValidatorIndex, epoch phase0.Epoch) (api.ValidatorState, error)
}

Service is the generic validators manager service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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