node

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: LGPL-3.0 Imports: 31 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDatabase

func OpenDatabase(datadir string, name string, cache int, handles int) (db.DB, error)

func ProvideMobileKey

func ProvideMobileKey(path string, cfg string, key string, password string) string

func StartMobileNode

func StartMobileNode(path string, cfg string) string

Types

type Node

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

func NewNode

func NewNode(config *config.Config, appVersion string) (*Node, error)

func (*Node) Start

func (node *Node) Start()

func (*Node) StartWithHeight

func (node *Node) StartWithHeight(height uint64)

func (*Node) WaitForStop

func (node *Node) WaitForStop()

type NodeCtx

type NodeCtx struct {
	Node            *Node
	AppState        *appstate.AppState
	Ceremony        *ceremony.ValidationCeremony
	Blockchain      *blockchain.Blockchain
	Flipper         *flip.Flipper
	KeysPool        *mempool.KeysPool
	OfflineDetector *blockchain.OfflineDetector
	PendingProofs   *sync.Map
	ProposerByRound pengings.ProposerByRound
}

func NewNodeWithInjections

func NewNodeWithInjections(config *config.Config, bus eventbus.Bus, statsCollector collector.StatsCollector, appVersion string) (*NodeCtx, error)

Jump to

Keyboard shortcuts

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