MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetNeighbors

Method GetNeighbors

p2pserver/net/netserver/netserver.go:215–217  ·  view source on GitHub ↗

GetNeighbors return all nbr peer

()

Source from the content-addressed store, hash-verified

213
214//GetNeighbors return all nbr peer
215func (this *NetServer) GetNeighbors() []*peer.Peer {
216 return this.Np.GetNeighbors()
217}
218
219//NodeEstablished return whether a peer is establish with self according to id
220func (this *NetServer) NodeEstablished(id uint64) bool {

Callers 1

TestNetServerNbrPeerFunction · 0.95

Calls 1

GetNeighborsMethod · 0.65

Tested by 1

TestNetServerNbrPeerFunction · 0.76