Documentation ¶
Index ¶
- func DefaultDataDir() string
- func IsCompleteGenesisConfig(genesisConfig *Genesis) bool
- type Chain
- type Config
- type ConsensusGroupContractInfo
- type ConsensusGroupInfo
- type ForkPoint
- type ForkPoints
- type Genesis
- type GenesisVmLog
- type MintageContractInfo
- type Net
- type PledgeContractInfo
- type PledgeInfo
- type Producer
- type RegisterConditionParam
- type RegistrationInfo
- type Subscribe
- type TokenInfo
- type Vm
- type VoteConditionParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDataDir ¶ added in v1.3.0
func DefaultDataDir() string
DefaultDataDir is the default data directory to use for the databases and other persistence requirements.
func IsCompleteGenesisConfig ¶
Types ¶
type Config ¶
type ConsensusGroupContractInfo ¶
type ConsensusGroupContractInfo struct { ConsensusGroupInfoMap map[string]ConsensusGroupInfo // consensus group info, gid - info RegistrationInfoMap map[string]map[string]RegistrationInfo // registration info, gid - nodeName - info HisNameMap map[string]map[string]string // used node name for node addr, gid - nodeAddr - nodeName VoteStatusMap map[string]map[string]string // vote info, gid - voteAddr - nodeName }
type ConsensusGroupInfo ¶ added in v1.2.0
type ConsensusGroupInfo struct { NodeCount uint8 Interval int64 PerCount int64 RandCount uint8 RandRank uint8 Repeat uint16 CheckLevel uint8 CountingTokenId types.TokenTypeId RegisterConditionId uint8 RegisterConditionParam RegisterConditionParam VoteConditionId uint8 VoteConditionParam VoteConditionParam Owner types.Address PledgeAmount *big.Int WithdrawHeight uint64 }
type ForkPoints ¶ added in v1.2.0
type ForkPoints struct{}
type Genesis ¶ added in v1.2.0
type Genesis struct { GenesisAccountAddress *types.Address ForkPoints *ForkPoints ConsensusGroupInfo *ConsensusGroupContractInfo MintageInfo *MintageContractInfo PledgeInfo *PledgeContractInfo AccountBalanceMap map[string]map[string]*big.Int // address - tokenId - balanceAmount }
type GenesisVmLog ¶
type MintageContractInfo ¶
type MintageContractInfo struct { TokenInfoMap map[string]TokenInfo // tokenId - info LogList []GenesisVmLog // mint events }
type Net ¶
type Net struct { Single bool `json:"Single"` FileListenAddress string `json:"FileListenAddress"` ForwardStrategy string `json:"ForwardStrategy"` TraceEnabled bool `json:"TraceEnabled"` AccessControl string `json:"AccessControl"` // producer special any AccessAllowKeys []string `json:"AccessAllowKeys"` AccessDenyKeys []string `json:"AccessDenyKeys"` BlackBlockHashList []string `json:"BlackBlockHashList"` MinePrivateKey ed25519.PrivateKey P2PPrivateKey ed25519.PrivateKey }
type PledgeContractInfo ¶
type PledgeContractInfo struct { PledgeInfoMap map[string][]PledgeInfo PledgeBeneficialMap map[string]*big.Int }
type PledgeInfo ¶
type RegisterConditionParam ¶
type RegisterConditionParam struct { PledgeAmount *big.Int PledgeToken types.TokenTypeId PledgeHeight uint64 }
type RegistrationInfo ¶
type VoteConditionParam ¶
type VoteConditionParam struct { }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.