dagconfig

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: GPL-3.0, GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SConfig      Sconfig
	DefaultToken = "PTN"
	// DefaultToken = "ABC+10A4QIWCI46V8MZJ2UO"
	DagConfig = DefaultConfig
)
View Source
var DefaultConfig = Config{
	DbPath:                       "./leveldb",
	UtxoIndex:                    true,
	MemoryUnitSize:               1280,
	IrreversibleHeight:           1,
	WhetherValidateUnitSignature: false,
	GenesisHash:                  "0xeb5f66d0289ea0af68860fd5a4d1a0b38389f598ae01008433a5ca9949fcf55c",
	PartitionForkUnitHeight:      0,
	AddrTxsIndex:                 false,
	Token721TxIndex:              true,
	TextFileHashIndex:            true,
	GasToken:                     DefaultToken,
}

Functions

func DefaultDataDir

func DefaultDataDir() string

DefaultDataDir is the default data directory to use for the databases and other persistence requirements.

Types

type Config

type Config struct {
	DbPath    string
	DbCache   int
	DbHandles int

	// cache
	CacheSource string

	//redis
	RedisAddr   string
	RedisPwd    string
	RedisPrefix string
	RedisDb     int

	// utxo
	UtxoIndex bool

	// memory unit size, unit number
	MemoryUnitSize uint

	// Irreversible height
	IrreversibleHeight int

	// Validate unit signature, just for debug version
	WhetherValidateUnitSignature bool
	// genesis hash‘s hex
	GenesisHash             string
	PartitionForkUnitHeight int

	AddrTxsIndex    bool
	Token721TxIndex bool

	TextFileHashIndex bool

	//当前节点选择的平台币,燃料币,必须为Asset全名
	GasToken string

	SyncPartitionTokens []string
	// contains filtered or unexported fields
}

global configuration of dag modules

func (*Config) GeSyncPartitionTokens

func (c *Config) GeSyncPartitionTokens() []modules.AssetId

func (*Config) GetGasToken

func (c *Config) GetGasToken() modules.AssetId

type Sconfig

type Sconfig struct {
	Blight bool
}

Jump to

Keyboard shortcuts

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