common

package
v0.0.0-...-24d451d Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TmCoreURL string

Functions

func IsExistUpgradeFile

func IsExistUpgradeFile() (string, bool)

IsExistUpgradeFile check .upgrade file is exist

func UpgradeBin

func UpgradeBin(filePath string, l log.Logger)

UpgradeBin upgrade contract binary executable file

Types

type Config

type Config struct {
	Address          string `yaml:"address"`        //default "tcp://127.0.0.1:46658"
	QueryDBAddress   string `yaml:"queryDBAddress"` //default "0.0.0.0:46666"
	ABCI             string `yaml:"abci"`           //default "socket"
	LogLevel         string `yaml:"logLevel"`       //default "debug"
	LogScreen        bool   `yaml:"logScreen"`
	LogFile          bool   `yaml:"logFile"`
	LogAsync         bool   `yaml:"logAsync"`
	LogSize          int    `yaml:"logFileSize"`
	DBName           string `yaml:"dbName"`
	DBIP             string `yaml:"dbIP"`
	DBPort           string `yaml:"dbPort"`
	ChainID          string `yaml:"chainID"`
	ContainerTimeout int64  `yaml:"containerTimeout"`
	Path             string
}

Config 具体含义请参考 bcchain.yaml

var GlobalConfig Config

GlobalConfig declares to global

func (*Config) GetConfig

func (c *Config) GetConfig() error

GetConfig read config to struct nolint

Jump to

Keyboard shortcuts

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