config

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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.

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"`
	*Subscribe  `json:"Subscribe"`
	*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
	Mint  *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"`
}

type Producer

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

type Subscribe added in v1.3.2

type Subscribe struct {
	IsSubscribe bool `json:"IsSubscribe"`
}

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