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

Function GetNetworkName

common/config/config.go:120–126  ·  view source on GitHub ↗
(id uint32)

Source from the content-addressed store, hash-verified

118}
119
120func GetNetworkName(id uint32) string {
121 name, ok := NETWORK_NAME[id]
122 if ok {
123 return name
124 }
125 return fmt.Sprintf("%d", id)
126}
127
128var DefConfig = NewBlockchainConfig()
129

Callers 3

SetBlockchainConfigFunction · 0.92
setP2PNodeConfigFunction · 0.92
NewBlockchainConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected