Documentation
¶
Index ¶
Constants ¶
View Source
const (
// root链默认链名
RootBlockChain = "xuper"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EngineConf ¶
type EngineConf struct {
// root chain name
RootChain string `yaml:"rootChain,omitempty"`
// BlockBroadcaseMode is the mode for broadcast new block
BlockBroadcastMode uint8 `yaml:"blockBroadcastMode,omitempty"`
// TxCacheExpiredTime expired time for tx cache
TxIdCacheExpiredTime time.Duration `yaml:"txidCacheExpiredTime,omitempty"`
// TxIdCacheGCInterval clean up interval for tx cache
TxIdCacheGCInterval time.Duration `yaml:"txIdCacheGCInterval,omitempty"`
// MaxBlockQueueSize the queue size of the processing block
MaxBlockQueueSize int64 `yaml:"maxBlockQueueSize,omitempty"`
}
func GetDefEngineConf ¶
func GetDefEngineConf() *EngineConf
func LoadEngineConf ¶
func LoadEngineConf(cfgFile string) (*EngineConf, error)
Click to show internal directories.
Click to hide internal directories.