init

package
v0.26.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectGenTxsCmd added in v0.26.0

func CollectGenTxsCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command

nolint

func GenTxCmd

func GenTxCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command

GenTxCmd builds the gaiad gentx command. nolint: errcheck

func InitCmd

func InitCmd(ctx *server.Context, cdc *codec.Codec, appInit server.AppInit) *cobra.Command

get cmd to initialize all files for tendermint and application nolint

func InitializeNodeValidatorFiles

func InitializeNodeValidatorFiles(
	config *cfg.Config) (nodeID string, valPubKey crypto.PubKey, err error,
)

InitializeNodeValidatorFiles creates private validator and p2p configuration files.

func ReadOrCreatePrivValidator

func ReadOrCreatePrivValidator(privValFile string) crypto.PubKey

read of create the private key file for this config

func TestnetFilesCmd

func TestnetFilesCmd(ctx *server.Context, cdc *codec.Codec,
	appInit server.AppInit) *cobra.Command

get cmd to initialize all files for tendermint testnet and application

func WriteGenesisFile

func WriteGenesisFile(
	genFile, chainID string, validators []types.GenesisValidator, appState json.RawMessage,
) error

WriteGenesisFile creates and writes the genesis configuration to disk. An error is returned if building or writing the configuration to file fails.

func WriteGenesisFileWithTime

func WriteGenesisFileWithTime(
	genFile, chainID string, validators []types.GenesisValidator,
	appState json.RawMessage, genTime time.Time,
) error

WriteGenesisFileWithTime creates and writes the genesis configuration to disk. An error is returned if building or writing the configuration to file fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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