ethereum

package
v0.0.197 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconNetwork

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

func NewBeaconNetwork

func NewBeaconNetwork(log logrus.FieldLogger, config *Config) (*BeaconNetwork, error)

func (*BeaconNetwork) Start

func (b *BeaconNetwork) Start(ctx context.Context) error

func (*BeaconNetwork) Wallclock

type Config

type Config struct {
	Network          string `yaml:"network"`
	NetworkConfigURL string `yaml:"networkConfigUrl"`
	GenesisJSONURL   string `yaml:"genesisJsonUrl"`
	SlotsPerEpoch    uint64 `yaml:"slotsPerEpoch"`
}

func (*Config) Validate

func (c *Config) Validate() error

type NetworkConfig

type NetworkConfig struct {
	SecondsPerSlot uint64 `yaml:"SECONDS_PER_SLOT"`
}

Jump to

Keyboard shortcuts

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