Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_CONFIG_FILE_NAME = "./config.json" MIN_GEN_BLOCK_TIME = 2 DEFAULT_GEN_BLOCK_TIME = 6 DBFT_MIN_NODE_NUM = 4 //min node number of dbft consensus SOLO_MIN_NODE_NUM = 1 //min node number of solo consensus )
Variables ¶
View Source
var Version string
Functions ¶
This section is empty.
Types ¶
type ConfigFile ¶
type ConfigFile struct {
ConfigFile Configuration `json:"Configuration"`
}
type Configuration ¶
type Configuration struct { Magic int64 `json:"Magic"` Version int `json:"Version"` SeedList []string `json:"SeedList"` Bookkeepers []string `json:"Bookkeepers"` // The default book keepers' publickey HttpRestPort int `json:"HttpRestPort"` RestCertPath string `json:"RestCertPath"` RestKeyPath string `json:"RestKeyPath"` HttpInfoPort uint16 `json:"HttpInfoPort"` HttpInfoStart bool `json:"HttpInfoStart"` HttpWsPort int `json:"HttpWsPort"` HttpJsonPort int `json:"HttpJsonPort"` HttpLocalPort int `json:"HttpLocalPort"` NodePort int `json:"NodePort"` NodeConsensusPort int `json:"NodeConsensusPort"` NodeType string `json:"NodeType"` WebSocketPort int `json:"WebSocketPort"` PrintLevel int `json:"PrintLevel"` IsTLS bool `json:"IsTLS"` CertPath string `json:"CertPath"` KeyPath string `json:"KeyPath"` CAPath string `json:"CAPath"` GenBlockTime uint `json:"GenBlockTime"` MultiCoreNum uint `json:"MultiCoreNum"` SignatureScheme string `json:"SignatureScheme"` MaxLogSize int64 `json:"MaxLogSize"` MaxTxInBlock int `json:"MaxTransactionInBlock"` MaxHdrSyncReqs int `json:"MaxConcurrentSyncHeaderReqs"` ConsensusType string `json:"ConsensusType"` SystemFee map[string]int64 `json:"SystemFee"` }
var Parameters *Configuration
Click to show internal directories.
Click to hide internal directories.