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

Method getNode

p2pserver/p2pserver.go:376–378  ·  view source on GitHub ↗

getNode returns the peer with the id

(id uint64)

Source from the content-addressed store, hash-verified

374
375//getNode returns the peer with the id
376func (this *P2PServer) getNode(id uint64) *peer.Peer {
377 return this.network.GetPeer(id)
378}
379
380//retryInactivePeer try to connect peer in INACTIVITY state
381func (this *P2PServer) retryInactivePeer() {

Callers 2

getNextNodeMethod · 0.80
pingOutsyncNodesMethod · 0.80

Calls 1

GetPeerMethod · 0.65

Tested by

no test coverage detected