Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveLocalnetConfig ¶
func SaveMainnetConfig ¶
func SaveTestnetConfig ¶
Types ¶
type Config ¶
type Config struct {
Node *NodeConfig `toml:"node"`
Store *store.Config `toml:"store"`
Network *network.Config `toml:"network"`
Sync *sync.Config `toml:"sync"`
TxPool *txpool.Config `toml:"tx_pool"`
Consensus *consensus.Config `toml:"consensus"`
Logger *logger.Config `toml:"logger"`
GRPC *grpc.Config `toml:"grpc"`
HTTP *http.Config `toml:"http"`
Nanomsg *nanomsg.Config `toml:"nanomsg"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) SanityCheck ¶
SanityCheck performs basic checks on the configuration.
type NodeConfig ¶
type NodeConfig struct {
NumValidators int `toml:"num_validators"`
RewardAddresses []string `toml:"reward_addresses"`
}
func DefaultNodeConfig ¶
func DefaultNodeConfig() *NodeConfig
func (*NodeConfig) SanityCheck ¶
func (conf *NodeConfig) SanityCheck() error
SanityCheck performs basic checks on the configuration.
Click to show internal directories.
Click to hide internal directories.