utils

package
v0.0.0-...-491e088 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModeFlag = cli.StringFlag{
		Name:  "mode",
		Usage: "the mode that will be run, it can be set by relay, miner or full",
	}
	UnlockFlag = cli.StringFlag{
		Name:  "unlocks",
		Usage: "the list of accounts to unlock",
	}
	PasswordsFlag = cli.StringFlag{
		Name:  "passwords",
		Usage: "the file contains passwords used to unlock accounts ",
	}
)

Functions

func ExitWithErr

func ExitWithErr(writer io.Writer, err error)

func GlobalFlags

func GlobalFlags() []cli.Flag

func MinerFlags

func MinerFlags() []cli.Flag

func NewApp

func NewApp() *cli.App

func SetGlobalConfig

func SetGlobalConfig(ctx *cli.Context) *config.GlobalConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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