node

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: LGPL-3.0 Imports: 40 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, compact bool) (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() error

func (*Node) StartWithHeight

func (node *Node) StartWithHeight(height uint64) error

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
	Upgrader        *upgrade.Upgrader
}

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