Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_consensus_forks" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Check for consensus layer forks.", Config: DefaultConfig(), NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct { MinCheckEpochCount uint64 `yaml:"minCheckEpochCount" json:"minCheckEpochCount"` MaxForkDistance uint64 `yaml:"maxForkDistance" json:"maxForkDistance"` MaxForkCount uint64 `yaml:"maxForkCount" json:"maxForkCount"` }
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) Description ¶
func (*Task) LoadConfig ¶
func (*Task) Logger ¶
func (t *Task) Logger() logrus.FieldLogger
Click to show internal directories.
Click to hide internal directories.