node

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: GPL-3.0 Imports: 27 Imported by: 6

Documentation

Overview

Package node is the main process which handles the lifecycle of the runtime services in a slasher process, gracefully shutting everything down upon close.

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 Ethereum. It handles the lifecycle of the entire system and registers services to a service registry.

func New added in v1.2.0

func New(cliCtx *cli.Context) (*SlasherNode, error)

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

func (*SlasherNode) Close

func (n *SlasherNode) Close()

Close handles graceful shutdown of the system.

func (*SlasherNode) Start

func (n *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