Documentation ¶
Index ¶
- func DefaultDBProvider(ctx *DBContext) (dbm.DB, error)
- type DBContext
- type DBProvider
- type GenesisDocProvider
- type MetricsProvider
- type Node
- func (n *Node) BlockStore() *bc.BlockStore
- func (n *Node) Config() *cfg.Config
- func (n *Node) ConfigureRPC()
- func (n *Node) ConsensusReactor() *cs.ConsensusReactor
- func (n *Node) ConsensusState() *cs.ConsensusState
- func (n *Node) EventBus() *types.EventBus
- func (n *Node) EvidencePool() *evidence.EvidencePool
- func (n *Node) GenesisDoc() *types.GenesisDoc
- func (n *Node) IsListening() bool
- func (n *Node) Listeners() []string
- func (n *Node) MempoolReactor() *mempl.MempoolReactor
- func (n *Node) NodeInfo() p2p.NodeInfo
- func (n *Node) OnStart() error
- func (n *Node) OnStop()
- func (n *Node) PrivValidator() types.PrivValidator
- func (n *Node) ProxyApp() proxy.AppConns
- func (n *Node) Switch() *p2p.Switch
- type NodeGreeting
- type NodeID
- type NodeProvider
- type PrivNodeID
- type SignedNodeGreeting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBContext ¶
DBContext specifies config information for loading a new DB.
type DBProvider ¶
DBProvider takes a DBContext and returns an instantiated DB.
type GenesisDocProvider ¶
type GenesisDocProvider func() (*types.GenesisDoc, error)
GenesisDocProvider returns a GenesisDoc. It allows the GenesisDoc to be pulled from sources other than the filesystem, for instance from a distributed key-value store cluster.
func DefaultGenesisDocProviderFunc ¶
func DefaultGenesisDocProviderFunc(config *cfg.Config) GenesisDocProvider
DefaultGenesisDocProviderFunc returns a GenesisDocProvider that loads the GenesisDoc from the config.GenesisFile() on the filesystem.
type MetricsProvider ¶
MetricsProvider returns a consensus, p2p and mempool Metrics.
func DefaultMetricsProvider ¶
func DefaultMetricsProvider(config *cfg.InstrumentationConfig) MetricsProvider
DefaultMetricsProvider returns Metrics build using Prometheus client library if Prometheus is enabled. Otherwise, it returns no-op Metrics.
type Node ¶
type Node struct { cmn.BaseService // contains filtered or unexported fields }
Node is the highest level interface to a full Tendermint node. It includes all configuration information and running services.
func DefaultNewNode ¶
DefaultNewNode returns a Tendermint node with default settings for the PrivValidator, ClientCreator, GenesisDoc, and DBProvider. It implements NodeProvider.
func NewNode ¶
func NewNode(config *cfg.Config, privValidator types.PrivValidator, nodeKey *p2p.NodeKey, clientCreator proxy.ClientCreator, genesisDocProvider GenesisDocProvider, dbProvider DBProvider, metricsProvider MetricsProvider, logger log.Logger) (*Node, error)
NewNode returns a new, ready to go, Tendermint Node.
func (*Node) BlockStore ¶
func (n *Node) BlockStore() *bc.BlockStore
BlockStore returns the Node's BlockStore.
func (*Node) ConfigureRPC ¶
func (n *Node) ConfigureRPC()
ConfigureRPC sets all variables in rpccore so they will serve rpc calls from this node
func (*Node) ConsensusReactor ¶
func (n *Node) ConsensusReactor() *cs.ConsensusReactor
ConsensusReactor returns the Node's ConsensusReactor.
func (*Node) ConsensusState ¶
func (n *Node) ConsensusState() *cs.ConsensusState
ConsensusState returns the Node's ConsensusState.
func (*Node) EventBus ¶
EventBus returns the Node's EventBus.
func (*Node) EvidencePool ¶
func (n *Node) EvidencePool() *evidence.EvidencePool
EvidencePool returns the Node's EvidencePool.
func (*Node) GenesisDoc ¶
func (n *Node) GenesisDoc() *types.GenesisDoc
GenesisDoc returns the Node's GenesisDoc.
func (*Node) MempoolReactor ¶
func (n *Node) MempoolReactor() *mempl.MempoolReactor
MempoolReactor returns the Node's MempoolReactor.
func (*Node) NodeInfo ¶
NodeInfo returns the Node's Info from the Switch.
func (*Node) OnStart ¶
OnStart starts the Node. It implements cmn.Service.
func (*Node) PrivValidator ¶
func (n *Node) PrivValidator() types.PrivValidator
PrivValidator returns the Node's PrivValidator. XXX: for convenience only!
func (*Node) ProxyApp ¶
ProxyApp returns the Node's AppConns, representing its connections to the ABCI application.
type NodeGreeting ¶
type NodeProvider ¶
NodeProvider takes a config and a logger and returns a ready to go Node.
type PrivNodeID ¶
func (*PrivNodeID) SignGreeting ¶
func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting
type SignedNodeGreeting ¶
type SignedNodeGreeting struct { NodeGreeting Signature []byte }