node

package
v4.8.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rollback added in v1.1.0

func Rollback(config *cfg.Config, targetHeight uint64) error

Rollback rollback chain from one height to targetHeight

Types

type Node

type Node struct {
	cmn.BaseService
	// contains filtered or unexported fields
}

Node represent bytom node

func NewNode

func NewNode(config *cfg.Config) *Node

NewNode create bytom node

func (*Node) OnStart

func (n *Node) OnStart() error

OnStart implements BaseService

func (*Node) OnStop

func (n *Node) OnStop()

OnStop implements BaseService

func (*Node) RunForever

func (n *Node) RunForever()

RunForever listen to the stop signal

Jump to

Keyboard shortcuts

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