Documentation ¶
Index ¶
- Constants
- func RunNode()
- func SetFireable(evsw *events.EventSwitch, eventables ...events.Eventable)
- type Node
- func (n *Node) AddListener(l p2p.Listener)
- func (n *Node) BlockStore() *bc.BlockStore
- func (n *Node) ConsensusState() *consensus.ConsensusState
- func (n *Node) DialSeed()
- func (n *Node) EventSwitch() *events.EventSwitch
- func (n *Node) MempoolReactor() *mempl.MempoolReactor
- func (n *Node) Start() error
- func (n *Node) StartRPC() (net.Listener, error)
- func (n *Node) Stop()
- func (n *Node) Switch() *p2p.Switch
- type NodeGreeting
- type NodeID
- type PrivNodeID
- type SignedNodeGreeting
Constants ¶
View Source
const Version = "0.5.2"
Major: alpha Minor: encrypted p2p! Patch: New block pool logic
Variables ¶
This section is empty.
Functions ¶
func SetFireable ¶
func SetFireable(evsw *events.EventSwitch, eventables ...events.Eventable)
Add the event switch to reactors, mempool, etc.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AddListener ¶
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) ConsensusState ¶
func (n *Node) ConsensusState() *consensus.ConsensusState
func (*Node) DialSeed ¶
func (n *Node) DialSeed()
Dial a list of seeds in random order Spawns a go routine for each dial
func (*Node) EventSwitch ¶
func (n *Node) EventSwitch() *events.EventSwitch
func (*Node) MempoolReactor ¶
func (n *Node) MempoolReactor() *mempl.MempoolReactor
type NodeGreeting ¶
type PrivNodeID ¶
func (*PrivNodeID) SignGreeting ¶
func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting
type SignedNodeGreeting ¶
type SignedNodeGreeting struct { NodeGreeting Signature acm.Signature }
Click to show internal directories.
Click to hide internal directories.