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 ChainParams struct { Name string PowLimit *big.Int PowLimitBits uint32 TargetTimePerBlock time.Duration TargetTimespan time.Duration AdjustmentFactor int64 MaxOrphanBlocks int MinMemoryNodes uint32 CoinbaseLockTime uint32 ChainStorePath string FoundationAddress1 string //20% FoundationAddress2 string //35% FoundationAddress3 string //17% FoundationAddress4 string //4.5% FoundationAddress5 string //4.5% FoundationAddress6 string //1% FoundationAddress7 string //2% FoundationAddress8 string //3% FoundationAddress9 string //5% FoundationAddress10 string //5% FoundationAddress11 string //3% reward }
type ConfigFile ¶
type ConfigFile struct {
ConfigFile Configuration `json:"Configuration"`
}
type Configuration ¶
type Configuration struct { Magic uint32 `json:"Magic"` FoundationAddress string `json:"FoundationAddress"` Version int `json:"Version"` SeedList []string `json:"SeedList"` HttpRestPort int `json:"HttpRestPort"` MinCrossChainTxFee int `json:"MinCrossChainTxFee"` RestCertPath string `json:"RestCertPath"` RestKeyPath string `json:"RestKeyPath"` HttpInfoPort uint16 `json:"HttpInfoPort"` HttpInfoStart bool `json:"HttpInfoStart"` OpenService bool `json:"OpenService"` HttpWsPort int `json:"HttpWsPort"` WsHeartbeatInterval time.Duration `json:"WsHeartbeatInterval"` HttpJsonPort int `json:"HttpJsonPort"` OauthServerUrl string `json:"OauthServerUrl"` NoticeServerUrl string `json:"NoticeServerUrl"` NodePort uint16 `json:"NodePort"` NodeOpenPort uint16 `json:"NodeOpenPort"` PrintLevel uint8 `json:"PrintLevel"` IsTLS bool `json:"IsTLS"` CertPath string `json:"CertPath"` KeyPath string `json:"KeyPath"` CAPath string `json:"CAPath"` MultiCoreNum uint `json:"MultiCoreNum"` MaxLogsSize int64 `json:"MaxLogsSize"` MaxPerLogSize int64 `json:"MaxPerLogSize"` MaxTxsInBlock int `json:"MaxTransactionInBlock"` MaxBlockSize int `json:"MaxBlockSize"` PowConfiguration PowConfiguration `json:"PowConfiguration"` Arbiters []string `json:"Arbiters"` }
func (*Configuration) GetArbitrators ¶
func (config *Configuration) GetArbitrators() ([][]byte, error)
Click to show internal directories.
Click to hide internal directories.