Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "generate_attestations" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Generates valid attestations and sends them to the network", Category: "validator", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{}, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
// Key configuration
Mnemonic string `yaml:"mnemonic" json:"mnemonic" require:"B" desc:"Mnemonic phrase used to derive validator keys."`
StartIndex int `yaml:"startIndex" json:"startIndex" desc:"Index within the mnemonic from which to start deriving keys."`
IndexCount int `yaml:"indexCount" json:"indexCount" require:"C" desc:"Number of validator keys to use for generating attestations."`
// Limit configuration
LimitTotal int `yaml:"limitTotal" json:"limitTotal" require:"A.1" desc:"Total limit on the number of attestations to generate."`
LimitEpochs int `yaml:"limitEpochs" json:"limitEpochs" require:"A.2" desc:"Number of epochs to generate attestations for."`
// Client selection
ClientPattern string `` /* 127-byte string literal not displayed */
ExcludeClientPattern string `yaml:"excludeClientPattern" json:"excludeClientPattern" desc:"Regex pattern to exclude certain client endpoints."`
// Advanced settings
LastEpochAttestations bool `` /* 142-byte string literal not displayed */
SendAllLastEpoch bool `yaml:"sendAllLastEpoch" json:"sendAllLastEpoch" desc:"If true, send all attestations with last epoch data."`
LateHead int `yaml:"lateHead" json:"lateHead" desc:"Number of slots to delay the head vote in attestations."`
RandomLateHead string `yaml:"randomLateHead" json:"randomLateHead" desc:"Random late head range in 'min:max' or 'min-max' format."`
LateHeadClusterSize int `yaml:"lateHeadClusterSize" json:"lateHeadClusterSize" desc:"Size of validator clusters that share the same late head delay."`
}
func DefaultConfig ¶
func DefaultConfig() Config
func (*Config) ParseRandomLateHead ¶
ParseRandomLateHead parses the RandomLateHead string in "min:max" or "min-max" format. Returns minVal, maxVal values and whether random late head is enabled.
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.