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

Function GetRunMode

configs/run_mode.go:24–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22var runModeValue = Mainnet
23
24func GetRunMode() RunMode {
25 return runModeValue
26}
27
28func SetRunMode(runMode RunMode) error {
29 switch runMode {

Callers 9

ChainConfigInfoFunction · 0.85
CandidatesFunction · 0.85
ProposersFunction · 0.85
ValidatorsFunction · 0.85
BootnodesFunction · 0.85
InitDefaultValidatorsFunction · 0.85
TestSetRunModeToDevFunction · 0.85
TestSetRunModeToProdFunction · 0.85
TestSetRunModeToTestnetFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestSetRunModeToDevFunction · 0.68
TestSetRunModeToProdFunction · 0.68
TestSetRunModeToTestnetFunction · 0.68