config

package
v2.0.0-...-6878c7e Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: CC0-1.0 Imports: 0 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 {
	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"`
}

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,
) 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