main_node

package
v0.0.0-...-2f442fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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) OnBlock

func (n *Node) OnBlock(p *peer.Peer, msg *wire.MsgBlock, buf []byte)

func (*Node) OnHeaders

func (n *Node) OnHeaders(p *peer.Peer, msg *wire.MsgHeaders)

func (*Node) OnInv

func (n *Node) OnInv(p *peer.Peer, msg *wire.MsgInv)

func (*Node) OnMerkleBlock

func (n *Node) OnMerkleBlock(p *peer.Peer, msg *wire.MsgMerkleBlock)

func (*Node) OnPing

func (n *Node) OnPing(p *peer.Peer, msg *wire.MsgPing)

func (*Node) OnReject

func (n *Node) OnReject(p *peer.Peer, msg *wire.MsgReject)

func (*Node) OnTx

func (n *Node) OnTx(p *peer.Peer, msg *wire.MsgTx)

func (*Node) OnVerAck

func (n *Node) OnVerAck(p *peer.Peer, msg *wire.MsgVerAck)

func (*Node) Start

func (n *Node) Start(userNode bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL