config

package
v3.1.1-stargate Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: CC0-1.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Workers         int64         `yaml:"workers"`
	ParseNewBlocks  bool          `yaml:"listen_new_blocks"`
	ParseOldBlocks  bool          `yaml:"parse_old_blocks"`
	GenesisFilePath string        `yaml:"genesis_file_path,omitempty"`
	ParseGenesis    bool          `yaml:"parse_genesis"`
	StartHeight     int64         `yaml:"start_height"`
	FastSync        bool          `yaml:"fast_sync,omitempty"`
	AvgBlockTime    time.Duration `yaml:"average_block_time"`
}

func DefaultParsingConfig

func DefaultParsingConfig() Config

DefaultParsingConfig returns the default instance of Config

func NewParsingConfig

func NewParsingConfig(
	workers int64,
	parseNewBlocks, parseOldBlocks bool,
	parseGenesis bool, genesisFilePath string,
	startHeight int64, fastSync bool,
	avgBlockTime time.Duration,
) Config

NewParsingConfig allows to build a new Config instance

Jump to

Keyboard shortcuts

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