cmd

package
v0.0.0-...-f58d8a1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: LGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cast

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)

LoadAccountConfig get accounts and balances from the given file

func LoadConfigFromFile

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

LoadConfigFromFile gets node config from the given file

func LoadPoolAccountConfig

func LoadPoolAccountConfig(account string) ([]common.Address, error)

LoadPoolAccountConfig get accounts 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