init

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

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

func GenDoc(cmd *cobra.Command, outputDir string)

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 IPAddress

type IPAddress = string

IPAddress : ec2-5-5-5-5.compute-1.amazonaws.com

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 NodeName

type NodeName = string

NodeName : e.g. node0

type ServerName

type ServerName = string

ServerName : e.g. EAST40

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL