Versions in this module Expand all Collapse all v0 v0.7.2 Apr 16, 2020 v0.7.1 Apr 9, 2020 Changes in this version + type P2P interface + AddNbrNode func(*peer.Peer) + AddOutConnectingList func(addr string) (added bool) + AddPeerAddress func(addr string, p *peer.Peer) + Connect func(addr string) error + DelNbrNode func(id uint64) (*peer.Peer, bool) + GetConnectionCnt func() uint32 + GetHeight func() uint64 + GetHttpInfoPort func() uint16 + GetID func() uint64 + GetMaxPeerBlockHeight func() uint64 + GetMsgChan func() chan *types.MsgPayload + GetNeighborAddrs func() []common.PeerAddr + GetNeighbors func() []*peer.Peer + GetNp func() *peer.NbrPeers + GetOutConnRecordLen func() int + GetOutConnectingListLen func() (count uint) + GetPeer func(uint64) *peer.Peer + GetPeerFromAddr func(addr string) *peer.Peer + GetPort func() uint16 + GetRelay func() bool + GetServices func() uint64 + GetTime func() int64 + GetVersion func() uint32 + Halt func() + IsAddrFromConnecting func(addr string) bool + IsOwnAddress func(addr string) bool + IsPeerEstablished func(p *peer.Peer) bool + NodeEstablished func(uint64) bool + RemoveFromConnectingList func(addr string) + RemoveFromInConnRecord func(addr string) + RemoveFromOutConnRecord func(addr string) + RemovePeerAddress func(addr string) + Send func(p *peer.Peer, msg types.Message) error + SetHeight func(uint64) + SetOwnAddress func(addr string) + Start func() + Xmit func(msg types.Message)