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

Method GetConnectionCnt

p2pserver/net/netserver/netserver.go:195–197  ·  view source on GitHub ↗

GetConnectionCnt return the total number of valid connections

()

Source from the content-addressed store, hash-verified

193
194//GetConnectionCnt return the total number of valid connections
195func (this *NetServer) GetConnectionCnt() uint32 {
196 return this.Np.GetNbrNodeCnt()
197}
198
199//GetMaxPeerBlockHeight return the most height of valid connections
200func (this *NetServer) GetMaxPeerBlockHeight() uint64 {

Callers 1

TestNetServerNbrPeerFunction · 0.95

Calls 1

GetNbrNodeCntMethod · 0.80

Tested by 1

TestNetServerNbrPeerFunction · 0.76