Documentation ¶
Overview ¶
Package init is used for initializing specialized chain state.
Index ¶
Constants ¶
View Source
const ( DocFlag = "doc" DocFlagAbbr = "d" DocFlagUsage = "generate cli document to <path>" )
settings for CLI document generation
Variables ¶
This section is empty.
Functions ¶
func GenDoc ¶
GenDoc generates document for the current command-line interface to a designated folder.
func TestnetFilesCmd ¶
func TestnetFilesCmd(ctx *server.Context, cdc *codec.Codec, mbm module.BasicManager, genAccIterator genutiltypes.GenesisAccountsIterator) *cobra.Command
TestnetFilesCmd returns the CLI command handle that initializes all files for tendermint testnet and application.
Types ¶
type GeneratedNode ¶
type GeneratedNode struct {
// contains filtered or unexported fields
}
GeneratedNode : Generated per-node data from the configuration
type NodeConfig ¶
type NodeConfig struct { Server ServerName `json:"server"` PortShift int `json:"port_shift"` InitialCTK int64 `json:"initial_ctk"` Vesting int64 `json:"vesting"` VestingTime int64 `json:"vesting_time"` InitialDelegation int64 `json:"initial_delegation"` StakingDescription string `json:"staking_description"` SentryNodes []NodeName `json:"sentry_nodes"` IsSeed bool `json:"is_seed"` Continuous bool `json:"continuous"` }
NodeConfig : describe a node in testnet
type TestnetConfig ¶
type TestnetConfig struct { ChainID string `json:"chain_id"` Servers map[ServerName]IPAddress `json:"servers"` Nodes map[NodeName]NodeConfig `json:"nodes"` }
TestnetConfig : describe entire testnet
Click to show internal directories.
Click to hide internal directories.