MCPcopy Create free account
hub / github.com/CPChain/chain / ChainConfigInfo

Function ChainConfigInfo

configs/general.go:186–193  ·  view source on GitHub ↗

this contains all the changes we have made to the cpchain protocol. serves as the *default* config.

()

Source from the content-addressed store, hash-verified

184// this contains all the changes we have made to the cpchain protocol.
185// serves as the *default* config.
186func ChainConfigInfo() *ChainConfig {
187 runModeValue := GetRunMode()
188 chainConfig, ok := chainConfigMap[runModeValue]
189 if !ok {
190 log.Fatal("get chainConfig failed", "runModeValue", runModeValue)
191 }
192 return chainConfig
193}
194
195func Candidates() []common.Address {
196 return candidatesMap[GetRunMode()]

Callers 1

TestChainConfigInfoFunction · 0.85

Calls 2

GetRunModeFunction · 0.85
FatalMethod · 0.65

Tested by 1

TestChainConfigInfoFunction · 0.68