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 (*Config) GetGasToken ¶
Click to show internal directories.
Click to hide internal directories.