Documentation
¶
Index ¶
- func CollectGenFiles(validators []Validator, home string, xplac *client.XplaClient, ...) error
- func ConfigFile() *configManager
- func InitGenFile(xplac *client.XplaClient) (tendermint.GenesisDoc, error)
- func KeysAdd(validator Validator, home string, valNodeName string) (keyring.Keyring, error)
- func Node(validator Validator, valPath string, valNumber int, keyring keyring.Keyring, ...) error
- func ReadConfig(configFilePath string) error
- func Set(configFilePath string) error
- func SetInit(rootDir string) error
- func Validators(validators []Validator, home string, xplac *client.XplaClient) error
- type CommissionOption
- type ConfigType
- type Key
- type KeysOption
- type SaveMnemonic
- type Sentries
- type Validator
- type ValidatorOption
- type XplaGen
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectGenFiles ¶
func CollectGenFiles(validators []Validator, home string, xplac *client.XplaClient, genDoc tendermint.GenesisDoc) error
Collect gentxs. Input gentxs which is create validator message to already created genesis file.
func InitGenFile ¶
func InitGenFile(xplac *client.XplaClient) (tendermint.GenesisDoc, error)
Initialize genesis file. Record params to optimize xpla network.
func Node ¶
func Node(validator Validator, valPath string, valNumber int, keyring keyring.Keyring, xplac *client.XplaClient) error
Set validator or sentry node info. Create not only node key but also priv validator key that is only in the validator's config directory.
func Set ¶
Xpla node setting can be used after creating xpla binary through make install. This function is the entry point to create node by implementing sub-functions, such as creating gentx of each validator, initalizing genesis file, collecting gentx and etc.
func SetInit ¶
Create config files of the validator. These are included in the config directory of the validator.
func Validators ¶
func Validators(validators []Validator, home string, xplac *client.XplaClient) error
Setting validator node. Handle all processes in order to create validator node such as creating key, initializing config file and etc.
Types ¶
type CommissionOption ¶
type ConfigType ¶
type ConfigType struct {
XplaGen XplaGen `yaml:"xpla_gen"`
}
type KeysOption ¶
type SaveMnemonic ¶
type SaveMnemonic struct {
Mnemonic string `json:"mnemonic"`
}
type Validator ¶
type Validator struct { Moniker string `yaml:"moniker"` IpAddress string `yaml:"ip_address"` DelAmount string `yaml:"del_amount"` MinSelfDelegation string `yaml:"min_self_delegation"` CommissionOption CommissionOption `yaml:"commission_option"` ValidatorOption ValidatorOption `yaml:"validator_option"` Keys []Key `yaml:"local_keys"` KeysOption KeysOption `yaml:"keys_option"` Sentries Sentries `yaml:"sentries"` }