Documentation ¶
Overview ¶
Package majority is a strategy that obtains beacon block roots from multiple nodes and selects the most common.
Index ¶
- type Parameter
- func WithBeaconBlockRootProviders(providers map[string]eth2client.BeaconBlockRootProvider) Parameter
- func WithBlockRootToSlotCache(cache cache.BlockRootToSlotProvider) Parameter
- func WithClientMonitor(monitor metrics.ClientMonitor) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithProcessConcurrency(concurrency int64) Parameter
- func WithTimeout(timeout time.Duration) Parameter
- type Service
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 WithBeaconBlockRootProviders ¶
func WithBeaconBlockRootProviders(providers map[string]eth2client.BeaconBlockRootProvider) Parameter
WithBeaconBlockRootProviders sets the beacon block root providers.
func WithBlockRootToSlotCache ¶
func WithBlockRootToSlotCache(cache cache.BlockRootToSlotProvider) Parameter
WithBlockRootToSlotCache sets the block root to slot cache.
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 WithProcessConcurrency ¶
WithProcessConcurrency sets the concurrency for the service.
func WithTimeout ¶
WithTimeout sets the timeout for requests.
Click to show internal directories.
Click to hide internal directories.