this contains all the changes we have made to the cpchain protocol. serves as the *default* config.
()
| 184 | // this contains all the changes we have made to the cpchain protocol. |
| 185 | // serves as the *default* config. |
| 186 | func 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 | |
| 195 | func Candidates() []common.Address { |
| 196 | return candidatesMap[GetRunMode()] |