cmd

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: LGPL-3.0 Imports: 31 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cast added in v1.2.1

func Cast(conf *node.Config)

Cast cast RPC address to 0.0.0.0 miner mehtods already have security-defence setting, 0.0.0.0 is ok (after mainnet matures and becomes stable, we can switch to 127.0.0.1)

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