config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UtxoConfig

type UtxoConfig struct {
	CacheSize      int `yaml:"cachesize,omitempty"`
	TmpLockSeconds int `yaml:"tmplockSeconds,omitempty"`
}

type XLedgerConf

type XLedgerConf struct {
	// kv storage type
	KVEngineType   string     `yaml:"kvEngineType,omitempty"`
	OtherPaths     []string   `yaml:"otherPaths,omitempty"`
	StorageType    string     `yaml:"storageType,omitempty"`
	Utxo           UtxoConfig `yaml:"utxo,omitempty"`
	BlockCacheSize int        `yaml:"blockCacheSize,omitempty"`
	TxCacheSize    int        `yaml:"txCacheSize,omitempty"`
	MempoolTxLimit int        `yaml:"mempoolTxLimit,omitempty"`
}

func GetDefLedgerConf

func GetDefLedgerConf() *XLedgerConf

func LoadLedgerConf

func LoadLedgerConf(cfgFile string) (*XLedgerConf, error)

Jump to

Keyboard shortcuts

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