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

Function GetNetworkMagic

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

Source from the content-addressed store, hash-verified

102}
103
104func GetNetworkMagic(id uint32) uint32 {
105 nid, ok := NETWORK_MAGIC[id]
106 if ok {
107 return nid
108 }
109 return id
110}
111
112func GetStateHashCheckHeight(id uint32) uint32 {
113 return 0

Callers 3

SetBlockchainConfigFunction · 0.92
setP2PNodeConfigFunction · 0.92
NewBlockchainConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected