config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 3 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 {
	ListenAddr              string
	Eth1Endpoint            string // url for eth1 rpc endpoint
	Eth2Endpoint            string // url for eth2 rpc endpoint
	LogFilePath             string
	From                    string // address of voter
	KeystorePath            string
	GasLimit                string
	MaxGasPrice             string
	RewardEpochInterval     uint64
	Version                 string // v1/dev/v2
	EnableDistribute        bool   // used by voter
	SlashStartEpoch         uint64 // used by eth2block syncer
	UnstakingStartTimestamp uint64 // used by api server
	StafiInfoEndpoint       string // used by api server
	RewardStartEpoch        uint64 // used by v1 syncer to fetch history epoch balance info from start epoch

	EraCount uint64 // used for statistic

	Contracts Contracts

	Db Db
}

func Load

func Load(configFilePath string) (*Config, error)

type Contracts

type Contracts struct {
	StorageContractAddress string
}

type Db

type Db struct {
	Host string
	Port string
	User string
	Pwd  string
	Name string
}

Jump to

Keyboard shortcuts

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