node

package
v0.0.0-...-8220f0d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 32 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 {
	Directory   string
	Keys        *config.Keys
	Network     *config.Network
	NetworkName string
	NodeID      uint64
	Node        *config.Node
	Contracts   *config.Contracts
	CheckerOnly bool
	SBACOnly    bool
}

Config represents the configuration of an individual node within a Chainspace network.

type Server

type Server struct {
	Broadcast *broadcast.Service
	// contains filtered or unexported fields
}

Server represents a running Chainspace node.

func Run

func Run(cfg *Config) (*Server, error)

Run initialises a node with the given config.

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown closes all underlying resources associated with the node.

Jump to

Keyboard shortcuts

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