config

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PageSize                 int64             `yaml:"pragmaPageSize"`
	Port                     int64             `yaml:"port"`
	PprofPort                int               `yaml:"pprofPort"`
	HealthcheckPort          int64             `yaml:"healthcheck"`
	MinSafeBlock             int               `yaml:"minSafeBlock"`
	Network                  string            `yaml:"networkName"`
	Chainid                  uint64            `yaml:"chainid"`
	HomesteadBlock           uint64            `yaml:"homesteadBlock"`
	Eip155Block              uint64            `yaml:"eip155Block"`
	TxTopic                  string            `yaml:"mempoolTopic"`
	WhitelistInternal        map[uint64]string `yaml:"whitelist"`
	KafkaRollback            int64             `yaml:"kafkaRollback"`
	ReorgThreshold           int64             `yaml:"reorgThreshold"`
	Databases                map[string]string `yaml:"databases"`
	MempoolSlots             int               `yaml:"mempoolSize"`
	MemTxTimeThreshold       int64             `yaml:"mempoolTxTime"`     //mempool tx expiration in miuntes
	BlockWaitDuration        int64             `yaml:"blockWaitDuration"` // number of miliseconds to wait for a block from charon
	Concurrency              int               `yaml:"concurrency"`
	LogLevel                 string            `yaml:"loggingLevel"`
	Plugins                  []string          `yaml:"plugins"`
	PluginDir                string            `yaml:"pluginPath"`
	Brokers                  []broker          `yaml:"brokers"`
	BrokerParams             []transports.BrokerParams
	Statsd                   *statsdOpts     `yaml:"statsd"`
	CloudWatch               *cloudwatchOpts `yaml:"cloudwatch"`
	HeavyServer              string          `yaml:"heavyserver"`
	EarliestBlock            uint64
	LatestBlock              uint64
	BaseFeeChangeBlockHeight uint64
	LightSeed                int64
	ExtraConfig              map[string]map[string]string `yaml:extra`
	WhitelistExternal        map[uint64]types.Hash
}

func LoadConfig

func LoadConfig(fname string) (*Config, error)

func (*Config) GetBaseFeeDenominator added in v1.1.6

func (cfg *Config) GetBaseFeeDenominator(db *sql.DB) *big.Int

Jump to

Keyboard shortcuts

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