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 ¶
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="
Click to show internal directories.
Click to hide internal directories.