dagconfig

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 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",
	LocalDbPath:                  "./localdb",
	DbCache:                      30 * 1024 * 1024,
	UtxoIndex:                    true,
	MemoryUnitSize:               1280,
	IrreversibleHeight:           1,
	WhetherValidateUnitSignature: false,

	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
	LocalDbPath string
	DbCache     int // cache db size
	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