Documentation ¶
Index ¶
- type Node
- func (n *Node) EventBus() *tmtypes.EventBus
- func (n *Node) GetGenesis() *tmtypes.GenesisDoc
- func (n *Node) GetGenesisChunks() ([]string, error)
- func (n *Node) GetLogger() log.Logger
- func (n *Node) OnReset() error
- func (n *Node) OnStart() error
- func (n *Node) OnStop()
- func (n *Node) ProxyApp() proxy.AppConns
- func (n *Node) PubSubServer() *pubsub.Server
- func (n *Node) SetLogger(logger log.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { service.BaseService PubsubServer *pubsub.Server P2P *p2p.Client // TODO(tzdybal): consider extracting "mempool reactor" Mempool mempool.Mempool MempoolIDs *nodemempool.MempoolIDs Store store.Store TxIndexer txindex.TxIndexer BlockIndexer indexer.BlockIndexer IndexerService *txindex.IndexerService // keep context here only because of API compatibility // - it's used in `OnStart` (defined in service.Service interface) Ctx context.Context // contains filtered or unexported fields }
Node represents a client node in Dymint network. It connects all the components and orchestrates their work.
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, metrics *mempool.Metrics, ) (*Node, error)
NewNode creates new Dymint node.
func (*Node) GetGenesis ¶
func (n *Node) GetGenesis() *tmtypes.GenesisDoc
GetGenesis returns entire genesis doc.
func (*Node) GetGenesisChunks ¶
GetGenesisChunks returns chunked version of genesis.
func (*Node) PubSubServer ¶ added in v1.1.0
PubSubServer gives access to the Node's pubsub server
Click to show internal directories.
Click to hide internal directories.