Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigFilename = "./config.json" MINGENBLOCKTIME = 2 DEFAULTGENBLOCKTIME = 6 )
Variables ¶
View Source
var ( Parameters configParams Version string )
Functions ¶
This section is empty.
Types ¶
type ChainParams ¶
type ConfigFile ¶
type ConfigFile struct {
ConfigFile Configuration `json:"Configuration"`
}
type Configuration ¶
type Configuration struct {
Magic uint32 `json:"Magic"`
Version int `json:"Version"`
SeedList []string `json:"SeedList"`
HttpRestPort int `json:"HttpRestPort"`
RestCertPath string `json:"RestCertPath"`
RestKeyPath string `json:"RestKeyPath"`
HttpInfoPort uint16 `json:"HttpInfoPort"`
HttpInfoStart bool `json:"HttpInfoStart"`
HttpWsPort int `json:"HttpWsPort"`
WsHeartbeatInterval time.Duration `json:"WsHeartbeatInterval"`
HttpJsonPort int `json:"HttpJsonPort"`
OauthServerUrl string `json:"OauthServerUrl"`
NoticeServerUrl string `json:"NoticeServerUrl"`
NodePort int `json:"NodePort"`
WebSocketPort int `json:"WebSocketPort"`
PrintLevel int `json:"PrintLevel"`
IsTLS bool `json:"IsTLS"`
CertPath string `json:"CertPath"`
KeyPath string `json:"KeyPath"`
CAPath string `json:"CAPath"`
MultiCoreNum uint `json:"MultiCoreNum"`
MaxLogSize int64 `json:"MaxLogSize"`
MaxTxInBlock int `json:"MaxTransactionInBlock"`
MaxBlockSize int `json:"MaxBlockSize"`
PowConfiguration PowConfiguration `json:"PowConfiguration"`
}
Click to show internal directories.
Click to hide internal directories.