config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHomeDir = "./halo" // Defaults to "halo" in current directory

)

Variables

This section is empty.

Functions

func WriteConfigTOML

func WriteConfigTOML(cfg Config, logCfg log.Config) error

WriteConfigTOML writes the toml halo config to disk.

Types

type Config

type Config struct {
	HomeDir            string
	Network            netconf.ID
	EngineJWTFile      string
	EngineEndpoint     string
	RPCEndpoints       xchain.RPCEndpoints
	SnapshotInterval   uint64 // See cosmossdk.io/store/snapshots/types/options.go
	SnapshotKeepRecent uint64 // See cosmossdk.io/store/snapshots/types/options.go
	BackendType        string // See cosmos-db/db.go
	MinRetainBlocks    uint64
	PruningOption      string // See cosmossdk.io/store/pruning/types/options.go
	EVMBuildDelay      time.Duration
	EVMBuildOptimistic bool
	Tracer             tracer.Config
}

Config defines all halo specific config.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default halo config.

func (Config) AppStateDir

func (c Config) AppStateDir() string

func (Config) ConfigFile

func (c Config) ConfigFile() string

ConfigFile returns the default path to the toml halo config file.

func (Config) DataDir

func (c Config) DataDir() string

func (Config) SnapshotDir

func (c Config) SnapshotDir() string

func (Config) Verify

func (c Config) Verify() error

func (Config) VoterStateFile

func (c Config) VoterStateFile() string

Jump to

Keyboard shortcuts

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