node

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg Config, ntw setup.Network) error

Types

type Config

type Config struct {
	DataDir string
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(dataDir string, consensusCfg consensus.Config, dbCfg database.Config, prometheusCfg prometheus.Config, tracerCfg tracer.Config) Config

type Node

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

func NewNode

func NewNode(cfg *Config) (*Node, error)

makeFullNode creates a full go-database node

func (*Node) Start

func (n *Node) Start() error

Start starts base node and stop p2p server

func (*Node) Stop

func (n *Node) Stop() error

Jump to

Keyboard shortcuts

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