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

Method GetConnectionCnt

p2pserver/p2pserver.go:91–93  ·  view source on GitHub ↗

GetConnectionCnt return the established connect count

()

Source from the content-addressed store, hash-verified

89
90//GetConnectionCnt return the established connect count
91func (this *P2PServer) GetConnectionCnt() uint32 {
92 return this.network.GetConnectionCnt()
93}
94
95//GetMaxPeerBlockHeight return the established connect count
96func (this *P2PServer) GetMaxPeerBlockHeight() uint64 {

Callers 1

reachMinConnectionMethod · 0.95

Calls 1

GetConnectionCntMethod · 0.65

Tested by

no test coverage detected