Documentation ¶
Overview ¶
Code generated by fastssz. DO NOT EDIT. Hash: 3282cafedd7c38c40d775371540fad5f4b8ddf4cb4c7adbf109e91c0678af4ac Version: 0.1.2
Index ¶
- type ENRForkID
- func (e *ENRForkID) GetTree() (*ssz.Node, error)
- func (e *ENRForkID) HashTreeRoot() ([32]byte, error)
- func (e *ENRForkID) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (e *ENRForkID) MarshalSSZ() ([]byte, error)
- func (e *ENRForkID) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ENRForkID) SizeSSZ() (size int)
- func (e *ENRForkID) UnmarshalSSZ(buf []byte) error
- type Node
- type Options
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) HashTreeRoot ¶ added in v0.4.0
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
MarshalSSZ ssz marshals the ENRForkID object
func (*ENRForkID) MarshalSSZTo ¶ added in v0.4.0
MarshalSSZTo ssz marshals the ENRForkID object to a target array
func (*ENRForkID) SizeSSZ ¶ added in v0.4.0
SizeSSZ returns the ssz encoded size in bytes for the ENRForkID object
func (*ENRForkID) UnmarshalSSZ ¶ added in v0.4.0
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
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
Click to show internal directories.
Click to hide internal directories.