Versions in this module Expand all Collapse all v0 v0.6.1 Jan 21, 2020 Changes in this version + const CONSENSUS_TYPE_DBFT + const CONSENSUS_TYPE_SOLO + const CONSENSUS_TYPE_VBFT + const DBFT_MIN_NODE_NUM + const DEFAULT_CLI_RPC_PORT + const DEFAULT_CONFIG_FILE_NAME + const DEFAULT_CONSENSUS_PORT + const DEFAULT_DATA_DIR + const DEFAULT_ENABLE_CONSENSUS + const DEFAULT_ENABLE_EVENT_LOG + const DEFAULT_GAS_LIMIT + const DEFAULT_GAS_PRICE + const DEFAULT_GEN_BLOCK_TIME + const DEFAULT_HTTP_INFO_PORT + const DEFAULT_LOG_LEVEL + const DEFAULT_MAX_CONN_IN_BOUND + const DEFAULT_MAX_CONN_IN_BOUND_FOR_SINGLE_IP + const DEFAULT_MAX_CONN_OUT_BOUND + const DEFAULT_MAX_LOG_SIZE + const DEFAULT_MAX_SYNC_HEADER + const DEFAULT_MAX_TX_IN_BLOCK + const DEFAULT_NODE_PORT + const DEFAULT_RESERVED_FILE + const DEFAULT_REST_MAX_CONN + const DEFAULT_REST_PORT + const DEFAULT_RPC_LOCAL_PORT + const DEFAULT_RPC_PORT + const DEFAULT_WALLET_FILE_NAME + const DEFAULT_WS_PORT + const DEFUALT_CLI_RPC_ADDRESS + const MIN_GEN_BLOCK_TIME + const NETWORK_ID_MAIN_NET + const NETWORK_ID_POLARIS_NET + const NETWORK_ID_SOLO_NET + const NETWORK_NAME_MAIN_NET + const NETWORK_NAME_POLARIS_NET + const NETWORK_NAME_SOLO_NET + const SOLO_MIN_NODE_NUM + const VBFT_MIN_NODE_NUM + var DefConfig = NewOntologyConfig() + var MainNetConfig = &GenesisConfig + var NETWORK_MAGIC = map[uint32]uint32 + var NETWORK_NAME = map[uint32]string + var OPCODE_UPDATE_CHECK_HEIGHT = map[uint32]uint32 + var PolarisConfig = &GenesisConfig + var STATE_HASH_CHECK_HEIGHT = map[uint32]uint32 + var Version = "" + func GetNetworkMagic(id uint32) uint32 + func GetNetworkName(id uint32) string + func GetOpcodeUpdateCheckHeight(id uint32) uint32 + func GetStateHashCheckHeight(id uint32) uint32 + type CommonConfig struct + DataDir string + EnableEventLog bool + GasLimit uint64 + GasPrice uint64 + LogLevel uint + NodeType string + SystemFee map[string]int64 + type ConsensusConfig struct + EnableConsensus bool + MaxTxInBlock uint + type DBFTConfig struct + Bookkeepers []string + GenBlockTime uint + type GenesisConfig struct + ConsensusType string + DBFT *DBFTConfig + SOLO *SOLOConfig + SeedList []string + VBFT *VBFTConfig + func NewGenesisConfig() *GenesisConfig + type OntologyConfig struct + Common *CommonConfig + Consensus *ConsensusConfig + Genesis *GenesisConfig + P2PNode *P2PNodeConfig + Restful *RestfulConfig + Rpc *RpcConfig + Ws *WebSocketConfig + func NewOntologyConfig() *OntologyConfig + func (this *OntologyConfig) GetBookkeepers() ([]keypair.PublicKey, error) + func (this *OntologyConfig) GetDefaultNetworkId() (uint32, error) + type P2PNodeConfig struct + CAPath string + CertPath string + HttpInfoPort uint + IsTLS bool + KeyPath string + MaxConnInBound uint + MaxConnInBoundForSingleIP uint + MaxConnOutBound uint + MaxHdrSyncReqs uint + NetworkId uint32 + NetworkMagic uint32 + NetworkName string + NodePort uint + ReservedCfg *P2PRsvConfig + ReservedPeersOnly bool + type P2PRsvConfig struct + MaskPeers []string + ReservedPeers []string + type RestfulConfig struct + EnableHttpRestful bool + HttpCertPath string + HttpKeyPath string + HttpMaxConnections uint + HttpRestPort uint + type RpcConfig struct + EnableHttpJsonRpc bool + HttpJsonPort uint + HttpLocalPort uint + type SOLOConfig struct + Bookkeepers []string + GenBlockTime uint + type VBFTConfig struct + AdminOntID string + BlockMsgDelay uint32 + C uint32 + HashMsgDelay uint32 + K uint32 + L uint32 + MaxBlockChangeView uint32 + MinInitStake uint32 + N uint32 + PeerHandshakeTimeout uint32 + Peers []*VBFTPeerStakeInfo + VrfProof string + VrfValue string + func (this *VBFTConfig) Deserialize(r io.Reader) error + func (this *VBFTConfig) Serialize(w io.Writer) error + type VBFTPeerStakeInfo struct + Address string + Index uint32 + InitPos uint64 + PeerPubkey string + func (this *VBFTPeerStakeInfo) Deserialize(r io.Reader) error + func (this *VBFTPeerStakeInfo) Serialize(w io.Writer) error + type WebSocketConfig struct + EnableHttpWs bool + HttpCertPath string + HttpKeyPath string + HttpWsPort uint