Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
var
runModeValue = Mainnet
23
24
func
GetRunMode() RunMode {
25
return
runModeValue
26
}
27
28
func
SetRunMode(runMode RunMode) error {
29
switch
runMode {
Callers
9
ChainConfigInfo
Function · 0.85
Candidates
Function · 0.85
Proposers
Function · 0.85
Validators
Function · 0.85
Bootnodes
Function · 0.85
InitDefaultValidators
Function · 0.85
TestSetRunModeToDev
Function · 0.85
TestSetRunModeToProd
Function · 0.85
TestSetRunModeToTestnet
Function · 0.85
Calls
no outgoing calls
Tested by
3
TestSetRunModeToDev
Function · 0.68
TestSetRunModeToProd
Function · 0.68
TestSetRunModeToTestnet
Function · 0.68