Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_consensus_slot_range" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Check if consensus wallclock is in a specific range.", Category: "consensus", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{ { Name: "genesisTime", Type: "int64", Description: "The genesis timestamp in Unix seconds.", }, { Name: "currentSlot", Type: "uint64", Description: "The current wallclock slot number.", }, { Name: "currentEpoch", Type: "uint64", Description: "The current wallclock epoch number.", }, }, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
MinSlotNumber uint64 `yaml:"minSlotNumber" json:"minSlotNumber" desc:"Minimum slot number required to pass the check."`
MaxSlotNumber uint64 `yaml:"maxSlotNumber" json:"maxSlotNumber" desc:"Maximum slot number allowed to pass the check."`
MinEpochNumber uint64 `yaml:"minEpochNumber" json:"minEpochNumber" desc:"Minimum epoch number required to pass the check."`
MaxEpochNumber uint64 `yaml:"maxEpochNumber" json:"maxEpochNumber" desc:"Maximum epoch number allowed to pass the check."`
FailIfLower bool `yaml:"failIfLower" json:"failIfLower" desc:"If true, fail immediately when slot/epoch is below minimum instead of waiting."`
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.