init

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 35 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGenesisAccountCmd

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

AddGenesisAccountCmd returns add-genesis-account cobra Command

func CollectGenTxsCmd

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

nolint

func ExportGenesisFile

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

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

func ExportGenesisFileWithTime

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

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

func GenTxCmd

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

GenTxCmd builds the iris gentx command. nolint: errcheck

func InitCmd

func InitCmd(ctx *server.Context, cdc *codec.Codec) *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 LoadNodeValidatorFiles

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

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) *cobra.Command

get cmd to initialize all files for tendermint testnet and application

Types

This section is empty.

Jump to

Keyboard shortcuts

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