Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Top-level directory of evm-babble data
DataDir string `mapstructure:"datadir"`
// Debug, info, warn, error, fatal, panic
LogLevel string `mapstructure:"log"`
// Genesis file
Genesis string `mapstructure:"genesis"`
// Location of ethereum account keys
Keystore string `mapstructure:"keystore"`
// File containing passwords to unlock ethereum accounts
PwdFile string `mapstructure:"pwd"`
// File containing the levelDB database
DbFile string `mapstructure:"db"`
// Address of HTTP API Service
EthAPIAddr string `mapstructure:"listen"`
// Megabytes of memory allocated to internal caching (min 16MB / database
// forced)
Cache int `mapstructure:"cache"`
// Minimum gasprice for transactions submitted through this node's service
MinGasPrice string `mapstructure:"min-gas-price"`
// contains filtered or unexported fields
}
Config contains de configuration for an EVM-Lite node
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default configuration for an EVM-Lite node
func (*Config) SetDataDir ¶
SetDataDir updates the root data directory and trickles down to the eth directories if they are currently set to the default values.
Click to show internal directories.
Click to hide internal directories.