bootnode

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 3282cafedd7c38c40d775371540fad5f4b8ddf4cb4c7adbf109e91c0678af4ac Version: 0.1.2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ENRForkID added in v0.4.0

type ENRForkID struct {
	CurrentForkDigest []byte `ssz-size:"4"`
	NextForkVersion   []byte `ssz-size:"4"`
	NextForkEpoch     phase0.Epoch
}

func (*ENRForkID) GetTree added in v0.4.0

func (e *ENRForkID) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ENRForkID object

func (*ENRForkID) HashTreeRoot added in v0.4.0

func (e *ENRForkID) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ENRForkID object

func (*ENRForkID) HashTreeRootWith added in v0.4.0

func (e *ENRForkID) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ENRForkID object with a hasher

func (*ENRForkID) MarshalSSZ added in v0.4.0

func (e *ENRForkID) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ENRForkID object

func (*ENRForkID) MarshalSSZTo added in v0.4.0

func (e *ENRForkID) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ENRForkID object to a target array

func (*ENRForkID) SizeSSZ added in v0.4.0

func (e *ENRForkID) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the ENRForkID object

func (*ENRForkID) UnmarshalSSZ added in v0.4.0

func (e *ENRForkID) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ENRForkID object

type Node

type Node interface {
	// Start starts the SSV node
	Start(ctx context.Context, logger *zap.Logger) error
}

Node represents the behavior of boot node

func New

func New(opts Options) (Node, error)

New is the constructor of ssvNode

type Options

type Options struct {
	PrivateKey string `yaml:"PrivateKey" env:"BOOT_NODE_PRIVATE_KEY" env-description:"boot node private key (default will generate new)"`
	ExternalIP string `yaml:"ExternalIP" env:"BOOT_NODE_EXTERNAL_IP" env-description:"Override boot node's external IP"`
	TCPPort    int    `yaml:"TcpPort" env:"TCP_PORT" env-default:"5000" env-description:"TCP port for p2p transport"`
	UDPPort    int    `yaml:"UdpPort" env:"UDP_PORT" env-default:"4000" env-description:"UDP port for discovery"`
	DbPath     string `yaml:"DbPath" env:"BOOT_NODE_DB_PATH" env-default:"/data/bootnode" env-description:"Path to the boot node's database"`
	Network    string `yaml:"Network" env:"NETWORK" env-default:"mainnet"`
}

Options contains options to create the node

Jump to

Keyboard shortcuts

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