config

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveLocalnetConfig

func SaveLocalnetConfig(path, rewardAddr string) error

func SaveMainnetConfig

func SaveMainnetConfig(path, rewardAddr string) error

func SaveTestnetConfig

func SaveTestnetConfig(path, rewardAddr string) error

Types

type Config

type Config struct {
	State     *state.Config     `toml:"state"`
	Store     *store.Config     `toml:"store"`
	Network   *network.Config   `toml:"network"`
	Sync      *sync.Config      `toml:"sync"`
	TxPool    *txpool.Config    `toml:"tx_pool"`
	Consensus *consensus.Config `toml:"consensus"`
	Logger    *logger.Config    `toml:"logger"`
	GRPC      *grpc.Config      `toml:"grpc"`
	HTTP      *http.Config      `toml:"http"`
	Nanomsg   *nanomsg.Config   `toml:"nanomsg"`
}

func DefaultConfig

func DefaultConfig() *Config

func LoadFromFile

func LoadFromFile(file string) (*Config, error)

func (*Config) SanityCheck

func (conf *Config) SanityCheck() error

Jump to

Keyboard shortcuts

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