node

package
v0.0.0-...-568787c Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 35 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseLayersHealthStatus

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

BaseLayersHealthStatus contains information about health of base layers.

type Node

type Node struct {
	service.BaseService

	P2P *p2p.Client

	// TODO(tzdybal): consider extracting "mempool reactor"
	Mempool mempool.Mempool

	Store store.Store

	TxIndexer      txindex.TxIndexer
	BlockIndexer   indexer.BlockIndexer
	IndexerService *txindex.IndexerService
	// contains filtered or unexported fields
}

Node represents a client node in Dymint network. It connects all the components and orchestrates their work.

func CreateNode

func CreateNode(isAggregator bool, blockManagerConfig *config.BlockManagerConfig) (*Node, error)

func NewNode

func NewNode(ctx context.Context, conf config.NodeConfig, p2pKey crypto.PrivKey, signingKey crypto.PrivKey, clientCreator proxy.ClientCreator, genesis *tmtypes.GenesisDoc, logger log.Logger, opts ...p2p.Option) (*Node, error)

NewNode creates new Dymint node.

func (*Node) EventBus

func (n *Node) EventBus() *tmtypes.EventBus

EventBus gives access to Node's event bus.

func (*Node) GetGenesis

func (n *Node) GetGenesis() *tmtypes.GenesisDoc

GetGenesis returns entire genesis doc.

func (*Node) GetGenesisChunks

func (n *Node) GetGenesisChunks() ([]string, error)

GetGenesisChunks returns chunked version of genesis.

func (*Node) GetLogger

func (n *Node) GetLogger() log.Logger

GetLogger returns logger.

func (*Node) OnReset

func (n *Node) OnReset() error

OnReset is a part of Service interface.

func (*Node) OnStart

func (n *Node) OnStart() error

OnStart is a part of Service interface.

func (*Node) OnStop

func (n *Node) OnStop()

OnStop is a part of Service interface.

func (*Node) ProxyApp

func (n *Node) ProxyApp() proxy.AppConns

ProxyApp returns ABCI proxy connections to communicate with application.

func (*Node) PubSubServer

func (n *Node) PubSubServer() *pubsub.Server

PubSubServer gives access to the Node's pubsub server

func (*Node) SetLogger

func (n *Node) SetLogger(logger log.Logger)

SetLogger sets the logger used by node.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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