config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalConfigurationFile

type GlobalConfigurationFile struct {
	LiteServers []LiteServer
}

GlobalConfigurationFile contains global configuration of the TON Blockchain. It is shared by all nodes and includes information about network, init block, hardforks, etc.

func ParseConfig

func ParseConfig(data io.Reader) (*GlobalConfigurationFile, error)

func ParseConfigFile

func ParseConfigFile(path string) (*GlobalConfigurationFile, error)

type LiteServer

type LiteServer struct {
	Host string
	Key  string
}

LiteServer TODO: clarify struct

func ParseLiteServersEnvVar added in v1.0.9

func ParseLiteServersEnvVar(str string) ([]LiteServer, error)

ParseLiteServersEnvVar parses the given string and returns a list of lite servers. The string is a comma-separated list of servers in the following format: "ip:port:public-key". An example of such an env variable: LITE_SERVERS="127.0.0.1:22095:6PGkPQSbyFp12esf1NqmDOaLoFA8i9+Mp5+cAx5wtTU=,192.168.0.17:14095:6PGkPQSbyFp12esf1NqmDOaLoFA8i9+Mp5+cAx5wtTU="

Jump to

Keyboard shortcuts

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