config

package
v1.2.3-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	KafkaProducers       []*KafkaProducer
	OpenBlackBlock       bool
	LedgerGcRetain       uint64
	GenesisFile          string
	LedgerGc             bool
	OpenFilterTokenIndex bool
}

type ConditionRegisterData added in v1.2.0

type ConditionRegisterData struct {
	PledgeAmount *big.Int
	PledgeToken  types.TokenTypeId
	PledgeHeight uint64
}

type Config

type Config struct {
	*Producer   `json:"Producer"`
	*Chain      `json:"Chain"`
	*Vm         `json:"Vm"`
	*Net        `json:"Net"`
	*biz.Reward `json:"Reward"`
	*Genesis    `json:"Genesis"`

	// global keys
	DataDir string `json:"DataDir"`
	//Log level
	LogLevel string `json:"LogLevel"`
}

func (Config) RunLogDir

func (c Config) RunLogDir() string

type ConsensusGroupInfo added in v1.2.0

type ConsensusGroupInfo struct {
	NodeCount              uint8
	Interval               int64
	PerCount               int64
	RandCount              uint8
	RandRank               uint8
	CountingTokenId        types.TokenTypeId
	RegisterConditionId    uint8
	RegisterConditionParam ConditionRegisterData
	VoteConditionId        uint8
	VoteConditionParam     VoteConditionData
	Owner                  types.Address
	PledgeAmount           *big.Int
	WithdrawHeight         uint64
}

type ForkPoint added in v1.2.0

type ForkPoint struct {
	Height uint64
	Hash   *types.Hash
}

type ForkPoints added in v1.2.0

type ForkPoints struct {
	Smart *ForkPoint
}

type Genesis added in v1.2.0

type Genesis struct {
	GenesisAccountAddress  types.Address
	BlockProducers         []types.Address
	SnapshotConsensusGroup *ConsensusGroupInfo
	CommonConsensusGroup   *ConsensusGroupInfo

	ForkPoints *ForkPoints
}

type KafkaProducer

type KafkaProducer struct {
	BrokerList []string
	Topic      string
}

type Net

type Net struct {
	Single      bool     `json:"Single"`
	FileAddress string   `json:"FileAddress"`
	Topology    []string `json:"Topology"`
	Topic       string   `json:"Topic"`
	Interval    int64    `json:"Interval"`
	TopoEnabled bool     `json:"TopoEnabled"`
}

type Producer

type Producer struct {
	Producer         bool   `json:"Producer"`
	Coinbase         string `json:"Coinbase"`
	EntropyStorePath string `json:"EntropyStorePath"`
}

type Vm

type Vm struct {
	IsVmTest         bool `json:"IsVmTest"`
	IsUseVmTestParam bool `json:"IsUseVmTestParam"`
	IsVmDebug        bool `json:"IsVmDebug"`
}

type VoteConditionData added in v1.2.0

type VoteConditionData struct {
	Amount  *big.Int
	TokenId types.TokenTypeId
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL