config

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0, UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMinGasPrices  = errors.New("invalid min gas prices")
	ErrInvalidPruneStrategy = errors.New("invalid prune strategy")
	ErrInvalidQueryLimit    = errors.New("query limits must not be negative")
)

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	// Lowest gas prices accepted by a validator in the form of "100tokenA/3gas;10tokenB/5gas" separated by semicolons
	MinGasPrices string `json:"min_gas_prices" toml:"min_gas_prices" comment:"Lowest gas prices accepted by a validator"`

	// The enforced state pruning stategy for the app
	PruneStrategy types.PruneStrategy `json:"prune_strategy" toml:"prune_strategy" comment:"State pruning strategy [everything, nothing, syncable]"`

	// VM budget of one query, set per node. 0 keeps the app default.
	QueryMaxGas   int64 `` /* 128-byte string literal not displayed */
	QueryMaxAlloc int64 `` /* 126-byte string literal not displayed */
	// Wall-clock limit of one query, set per node. 0 derives it from the gas
	// budget.
	QueryTimeout time.Duration `` /* 190-byte string literal not displayed */
}

AppConfig defines the configuration options for the Application

func DefaultAppConfig

func DefaultAppConfig() *AppConfig

DefaultAppConfig returns a default configuration for the application

func (*AppConfig) ValidateBasic

func (cfg *AppConfig) ValidateBasic() error

ValidateBasic performs basic validation, checking format and param bounds, etc., and returns an error if any check fails.

Jump to

Keyboard shortcuts

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