Documentation ¶
Overview ¶
Package first is a strategy that obtains signed beacon blocks from multiple nodes and selects the first one returned.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithClientMonitor ¶
func WithClientMonitor(monitor metrics.ClientMonitor) Parameter
WithClientMonitor sets the client monitor for the service.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithSignedBeaconBlockProviders ¶
func WithSignedBeaconBlockProviders(providers map[string]consensusclient.SignedBeaconBlockProvider) Parameter
WithSignedBeaconBlockProviders sets the signed beacon block providers.
func WithTimeout ¶
WithTimeout sets the timeout for requests.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the provider for signed beacon blocks.
func (*Service) SignedBeaconBlock ¶
func (s *Service) SignedBeaconBlock(ctx context.Context, opts *api.SignedBeaconBlockOpts, ) ( *api.Response[*spec.VersionedSignedBeaconBlock], error, )
SignedBeaconBlock provides the signed beacon block from a number of beacon nodes.
Click to show internal directories.
Click to hide internal directories.