Documentation ¶
Index ¶
- func ProtocolAndAddress(listenAddr string) (string, string)
- func SetEventSwitch(evsw types.EventSwitch, eventables ...types.Eventable)
- type Node
- func (n *Node) AddListener(l p2p.Listener)
- func (n *Node) BlockStore() *bc.BlockStore
- func (n *Node) ConfigureRPC()
- func (n *Node) ConsensusReactor() *consensus.ConsensusReactor
- func (n *Node) ConsensusState() *consensus.ConsensusState
- func (n *Node) DialSeeds(seeds []string) error
- func (n *Node) EventSwitch() types.EventSwitch
- func (n *Node) GenesisDoc() *types.GenesisDoc
- 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) RunForever()
- func (n *Node) Switch() *p2p.Switch
- type NodeGreeting
- type NodeID
- type PrivNodeID
- type SignedNodeGreeting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtocolAndAddress ¶ added in v0.7.1
Defaults to tcp
func SetEventSwitch ¶ added in v0.7.0
func SetEventSwitch(evsw types.EventSwitch, eventables ...types.Eventable)
Add the event switch to reactors, mempool, etc.
Types ¶
type Node ¶
type Node struct { cmn.BaseService // contains filtered or unexported fields }
func NewNode ¶
func NewNode(config cfg.Config, privValidator *types.PrivValidator, clientCreator proxy.ClientCreator) *Node
func NewNodeDefault ¶ added in v0.7.1
func (*Node) AddListener ¶ added in v0.7.0
func (n *Node) AddListener(l p2p.Listener)
Add a Listener to accept inbound peer connections. Add listeners before starting the Node. The first listener is the primary listener (in NodeInfo)
func (*Node) BlockStore ¶
func (n *Node) BlockStore() *bc.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() *consensus.ConsensusReactor
func (*Node) ConsensusState ¶
func (n *Node) ConsensusState() *consensus.ConsensusState
func (*Node) EventSwitch ¶ added in v0.7.0
func (n *Node) EventSwitch() types.EventSwitch
func (*Node) GenesisDoc ¶
func (n *Node) GenesisDoc() *types.GenesisDoc
func (*Node) MempoolReactor ¶
func (n *Node) MempoolReactor() *mempl.MempoolReactor
func (*Node) PrivValidator ¶
func (n *Node) PrivValidator() *types.PrivValidator
XXX: for convenience
func (*Node) RunForever ¶ added in v0.9.0
func (n *Node) RunForever()
type NodeGreeting ¶
type PrivNodeID ¶
type PrivNodeID struct { NodeID PrivKey crypto.PrivKey }
func (*PrivNodeID) SignGreeting ¶
func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting
type SignedNodeGreeting ¶
type SignedNodeGreeting struct { NodeGreeting Signature crypto.Signature }
Click to show internal directories.
Click to hide internal directories.