Documentation ¶
Index ¶
- Constants
- func StartActionNode()
- func StartUserNode()
- func WaitForActionNodeDisconnect()
- func WaitForUserNodeDisconnect()
- type Node
- func (n *Node) OnBlock(p *peer.Peer, msg *wire.MsgBlock, buf []byte)
- func (n *Node) OnHeaders(p *peer.Peer, msg *wire.MsgHeaders)
- func (n *Node) OnInv(p *peer.Peer, msg *wire.MsgInv)
- func (n *Node) OnMerkleBlock(p *peer.Peer, msg *wire.MsgMerkleBlock)
- func (n *Node) OnPing(p *peer.Peer, msg *wire.MsgPing)
- func (n *Node) OnReject(p *peer.Peer, msg *wire.MsgReject)
- func (n *Node) OnTx(p *peer.Peer, msg *wire.MsgTx)
- func (n *Node) OnVerAck(p *peer.Peer, msg *wire.MsgVerAck)
- func (n *Node) Start(userNode bool)
Constants ¶
View Source
const MinCheckHeight = 525000
Variables ¶
This section is empty.
Functions ¶
func StartActionNode ¶
func StartActionNode()
func StartUserNode ¶
func StartUserNode()
func WaitForActionNodeDisconnect ¶
func WaitForActionNodeDisconnect()
func WaitForUserNodeDisconnect ¶
func WaitForUserNodeDisconnect()
Types ¶
type Node ¶
type Node struct { Peer *peer.Peer NodeStatus *db.NodeStatus BlockHashes map[string]*db.Block PrevBlockHashes map[string]*db.Block PreviousFilterSize int MemoTxnsFound int AllTxnsFound int UserNode bool BlocksQueued int HeaderSyncComplete bool BlocksSyncComplete bool }
var ActionNode Node
var UserNode Node
func (*Node) OnMerkleBlock ¶
func (n *Node) OnMerkleBlock(p *peer.Peer, msg *wire.MsgMerkleBlock)
Click to show internal directories.
Click to hide internal directories.