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

Function GetConnectionCount

http/base/rpc/interfaces.go:117–124  ·  view source on GitHub ↗

get node connection count

(params []interface{})

Source from the content-addressed store, hash-verified

115
116//get node connection count
117func GetConnectionCount(params []interface{}) map[string]interface{} {
118 count, err := bactor.GetConnectionCnt()
119 if err != nil {
120 log.Errorf("GetConnectionCount error:%s", err)
121 return responsePack(berr.INTERNAL_ERROR, false)
122 }
123 return responseSuccess(count)
124}
125
126//get node connection most height
127func GetSyncStatus(params []interface{}) map[string]interface{} {

Callers

nothing calls this directly

Calls 4

ErrorfFunction · 0.92
responsePackFunction · 0.85
responseSuccessFunction · 0.85
GetConnectionCntMethod · 0.65

Tested by

no test coverage detected