node

package
v0.0.0-...-b605237 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Overview

Package node defines a validator client which connects to a full beacon node as part of the Ethereum Serenity specification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePubKey

func GeneratePubKey() ([]byte, error)

GeneratePubKey generates a random public key for the validator, if they have not provided one.

Types

type ValidatorClient

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

ValidatorClient defines an instance of a sharding validator that manages the entire lifecycle of services attached to it participating in Ethereum Serenity.

func NewValidatorClient

func NewValidatorClient(ctx *cli.Context) (*ValidatorClient, error)

NewValidatorClient creates a new, Ethereum Serenity validator client.

func (*ValidatorClient) Close

func (s *ValidatorClient) Close()

Close handles graceful shutdown of the system.

func (*ValidatorClient) Start

func (s *ValidatorClient) Start()

Start every service in the validator client.

Jump to

Keyboard shortcuts

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