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.
Click to show internal directories.
Click to hide internal directories.