config

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEngineEndpoint = "http://localhost:8551" // Default host endpoint for the Engine API

)

Variables

View Source
var (
	IliadConfig = Config{
		HomeDir:            DefaultHomeDir(),
		Network:            "iliad",
		EngineEndpoint:     DefaultEngineEndpoint,
		EngineJWTFile:      DefaultJWTFile("iliad"),
		SnapshotInterval:   defaultSnapshotInterval,
		SnapshotKeepRecent: defaultSnapshotKeepRecent,
		BackendType:        string(defaultDBBackend),
		MinRetainBlocks:    defaultMinRetainBlocks,
		PruningOption:      pruningtypes.PruningOptionDefault,
		EVMBuildDelay:      defaultEVMBuildDelay,
		EVMBuildOptimistic: false,
		APIEnable:          false,
		APIAddress:         "127.0.0.1:1317",
		EnableUnsafeCORS:   false,
		Tracer:             tracer.DefaultConfig(),
		RPCLaddr:           "tcp://127.0.0.1:26657",
		ExternalAddress:    "",
		Seeds:              "",
		SeedMode:           false,
	}
	LocalConfig = Config{
		HomeDir:            DefaultHomeDir(),
		Network:            "local",
		EngineEndpoint:     DefaultEngineEndpoint,
		EngineJWTFile:      DefaultJWTFile("local"),
		SnapshotInterval:   defaultSnapshotInterval,
		SnapshotKeepRecent: defaultSnapshotKeepRecent,
		BackendType:        string(defaultDBBackend),
		MinRetainBlocks:    defaultMinRetainBlocks,
		PruningOption:      pruningtypes.PruningOptionDefault,
		EVMBuildDelay:      defaultEVMBuildDelay,
		EVMBuildOptimistic: false,
		APIEnable:          false,
		APIAddress:         "127.0.0.1:1317",
		EnableUnsafeCORS:   false,
		Tracer:             tracer.DefaultConfig(),
		RPCLaddr:           "tcp://127.0.0.1:26657",
		ExternalAddress:    "",
		Seeds:              "",
		SeedMode:           false,
	}
)

Functions

func DefaultHomeDir

func DefaultHomeDir() string

DefaultHomeDir returns the default consensus client home directory.

func DefaultJWTFile

func DefaultJWTFile(network string) string

DefaultJWTFile returns the default engine-api jwt file assumed to be used by the execution client.

func WriteConfigTOML

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

WriteConfigTOML writes the toml story config to disk.

Types

type Config

type Config struct {
	HomeDir            string
	Network            netconf.ID
	EthKeyPassword     string
	EngineJWTFile      string
	EngineEndpoint     string
	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
	APIEnable          bool
	APIAddress         string
	EnableUnsafeCORS   bool
	Tracer             tracer.Config
	RPCLaddr           string
	ExternalAddress    string
	Seeds              string
	SeedMode           bool
	RemoveBlock        bool // See cosmos-sdk/server/rollback.go
}

Config defines all story specific config.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default story 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 story 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

Jump to

Keyboard shortcuts

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