cmd

package
v0.0.0-...-9bbbbb1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: LGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyConfig

func CopyConfig(cmdConfig *util.Config) *node.Config

CopyConfig copy Config from the given config

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetConfigFromFile

func GetConfigFromFile(filepath string) (*util.Config, error)

GetConfigFromFile unmarshals the config from the given file

func GetP2pConfig

func GetP2pConfig(cmdConfig *util.Config) (p2p.Config, error)

GetP2pConfig get P2PConfig from the given config

func LoadAccountConfig

func LoadAccountConfig(account string) (map[common.Address]*big.Int, error)

func LoadConfigFromFile

func LoadConfigFromFile(configFile string, accounts string) (*node.Config, error)

LoadConfigFromFile gets node config from the given file

Types

This section is empty.

Jump to

Keyboard shortcuts

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