config

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetFairConfig

func SetFairConfig(ctx *cli.Context, keypass, dbpass string)

Types

type Config

type Config struct {
	FairNodeDir string

	// DB setting
	DBhost string
	DBport string
	DBuser string
	DBpass string

	//key
	KeyPath string
	KeyPass string

	Port    string // 네트워크 포트
	NAT     string
	ChainID uint64
	Epoch   int64
	Debug   bool
	SysLog  bool
	Version string

	GethVersion string
	Miner       int64
	Fee         int64
}
var DefaultConfig *Config

func NewConfig

func NewConfig() *Config

func (*Config) SetMiningConf

func (c *Config) SetMiningConf(miner, epoch, fee int64, version string)

Set miner config

Jump to

Keyboard shortcuts

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