getconsensusspecs

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

get_consensus_specs Task

Description

The get_consensus_specs task retrieves the specifications of the consensus chain. This task is crucial for understanding the current parameters and configurations that govern the consensus layer of the Ethereum network.

Configuration Parameters

This task does not require any specific configuration parameters. It is designed to fetch the consensus chain specifications directly without the need for additional settings.

Outputs

  • specs: This output includes all the specification values of the consensus chain. It provides a comprehensive overview of the network's current operational parameters, such as epoch lengths, reward amounts, slashing penalties, and other critical consensus metrics.

Defaults

Default settings for the get_consensus_specs task:

- name: get_consensus_specs
  config: {}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TaskName       = "get_consensus_specs"
	TaskDescriptor = &types.TaskDescriptor{
		Name:        TaskName,
		Description: "Get consensus chain specs.",
		Config:      DefaultConfig(),
		NewTask:     NewTask,
	}
)

Functions

func NewTask

func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)

Types

type Config

type Config struct {
}

func DefaultConfig

func DefaultConfig() Config

func (*Config) Validate

func (c *Config) Validate() error

type Task

type Task struct {
	// contains filtered or unexported fields
}

func (*Task) Config

func (t *Task) Config() interface{}

func (*Task) Execute

func (t *Task) Execute(ctx context.Context) error

func (*Task) LoadConfig

func (t *Task) LoadConfig() error

func (*Task) Timeout

func (t *Task) Timeout() time.Duration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL