server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DepositAddress string
	Endpoint       string
	BeaconConfig   *beacon.ChainConfig
	GrpcAddr       string
	PrivKey        string
}

Config is the parametrizable configuration of the validator

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a default configuration

type Server

type Server struct {
	proto.UnimplementedValidatorServiceServer
	// contains filtered or unexported fields
}

Server is a validator in the eth2.0 network

func NewServer

func NewServer(logger hclog.Logger, config *Config) (*Server, error)

NewServer starts a new validator

func (*Server) Stop

func (v *Server) Stop()

Stop stops the validator

type SlotResult

type SlotResult struct {
	Slot uint64
}

Directories

Path Synopsis
Code generated by fastssz.
Code generated by fastssz.

Jump to

Keyboard shortcuts

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