Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_consensus_reorgs" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Check for consensus layer reorgs.", Category: "consensus", 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 {
MinCheckEpochCount uint64 `` /* 130-byte string literal not displayed */
MaxReorgDistance uint64 `yaml:"maxReorgDistance" json:"maxReorgDistance" desc:"Maximum allowed reorg distance (depth) in slots."`
MaxReorgsPerEpoch float64 `yaml:"maxReorgsPerEpoch" json:"maxReorgsPerEpoch" desc:"Maximum allowed average number of reorgs per epoch."`
MaxTotalReorgs uint64 `yaml:"maxTotalReorgs" json:"maxTotalReorgs" desc:"Maximum total number of reorgs allowed during monitoring."`
ContinueOnPass bool `` /* 137-byte string literal not displayed */
}
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.