node

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlasherNode

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

SlasherNode defines a struct that handles the services running a slashing detector for eth2. It handles the lifecycle of the entire system and registers services to a service registry.

func NewSlasherNode

func NewSlasherNode(ctx *cli.Context) (*SlasherNode, error)

NewSlasherNode creates a new node instance, sets up configuration options, and registers every required service.

func (*SlasherNode) Close

func (s *SlasherNode) Close()

Close handles graceful shutdown of the system.

func (*SlasherNode) Start

func (s *SlasherNode) Start()

Start the slasher and kick off every registered service.

Jump to

Keyboard shortcuts

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