Documentation ¶
Overview ¶
nolint=lll
Index ¶
- Variables
- func DefaultDataDir() string
- func DefaultNodeConfig() node.Config
- func EthermintLogger() tmlog.Logger
- func GetPassPhrase(prompt string, confirmation bool, i int, passwords []string) string
- func HomeDir() string
- func MakeDataDir(ctx *cli.Context) string
- func MakeFullNode(ctx *cli.Context) *ethereum.Node
- func ParseGenesisOrDefault(genesisPath string, chainID uint) (*core.Genesis, error)
- func ResetAll(ctx *cli.Context) error
- func SetEthermintEthConfig(cfg *eth.Config)
- func SetEthermintNodeConfig(cfg *node.Config)
- func Setup(ctx *cli.Context) error
- func StartNode(stack *ethereum.Node)
- func UnlockAccount(ctx *cli.Context, ks *keystore.KeyStore, address string, i int, ...) (accounts.Account, string)
Constants ¶
This section is empty.
Variables ¶
var ( // TendermintAddrFlag is the address that ethermint will use to connect to the tendermint core node // #stable - 0.4.0 TendermintAddrFlag = cli.StringFlag{ Name: "tendermint_addr", Value: "tcp://localhost:26657", Usage: "This is the address that ethermint will use to connect to the tendermint core node. Please provide a port.", } // ABCIAddrFlag is the address that ethermint will use to listen to incoming ABCI connections // #stable - 0.4.0 ABCIAddrFlag = cli.StringFlag{ Name: "abci_laddr", Value: "tcp://0.0.0.0:26658", Usage: "This is the address that the ABCI server will use to listen to incoming connection from tendermint core.", } // ABCIProtocolFlag defines whether GRPC or SOCKET should be used for the ABCI connections // #stable - 0.4.0 ABCIProtocolFlag = cli.StringFlag{ Name: "abci_protocol", Value: "socket", Usage: "socket | grpc", } // VerbosityFlag defines the verbosity of the logging // #unstable VerbosityFlag = cli.IntFlag{ Name: "verbosity", Value: 3, Usage: "Logging verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=core, 5=debug, 6=detail", } // ConfigFileFlag defines the path to a TOML config for go-ethereum // #unstable ConfigFileFlag = cli.StringFlag{ Name: "config", Usage: "TOML configuration file", } // TargetGasLimitFlag defines gas limit of the Genesis block // #unstable TargetGasLimitFlag = cli.Uint64Flag{ Name: "targetgaslimit", Usage: "Target gas limit sets the artificial target gas floor for the blocks to mine", Value: GenesisTargetGasLimit.Uint64(), } // WithTendermintFlag asks to start Tendermint // `tendermint init` and `tendermint node` when `ethermint init` // and `ethermint` are invoked respectively. WithTendermintFlag = cli.BoolFlag{ Name: "with-tendermint", Usage: "If set, it will invoke `tendermint init` and `tendermint node` " + "when `ethermint init` and `ethermint` are invoked respectively", } )
var ( // GenesisTargetGasLimit is the target gas limit of the Genesis block. // #unstable GenesisTargetGasLimit = big.NewInt(100000000) )
Functions ¶
func DefaultDataDir ¶
func DefaultDataDir() string
DefaultDataDir tries to guess the default directory for ethermint data #unstable
func DefaultNodeConfig ¶
DefaultNodeConfig returns the default configuration for a go-ethereum node #unstable
func EthermintLogger ¶
EthermintLogger returns a new instance of an ethermint logger. With() should be called upon the returned instance to set default keys #unstable
func GetPassPhrase ¶
getPassPhrase retrieves the password associated with an account, either fetched from a list of preloaded passphrases, or requested interactively from the user. nolint: unparam
func HomeDir ¶
func HomeDir() string
HomeDir returns the user's home most likely home directory #unstable
func MakeDataDir ¶
MakeDataDir retrieves the currently requested data directory #unstable
func MakeFullNode ¶
MakeFullNode creates a full go-ethereum node #unstable
func ParseGenesisOrDefault ¶
ParseGenesisOrDefault tries to read the content from provided genesisPath. If the path is empty or doesn't exist, it will use defaultGenesisBytes as the fallback genesis source. Otherwise, it will open that path and if it encounters an error that doesn't satisfy os.IsNotExist, it returns that error.
func SetEthermintEthConfig ¶
SetEthermintEthConfig takes a ethereum configuration and applies ethermint specific configuration #unstable
func SetEthermintNodeConfig ¶
SetEthermintNodeConfig takes a node configuration and applies ethermint specific configuration #unstable
Types ¶
This section is empty.