init

package
v0.0.0-...-9be3c48 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 carnot gentx command. nolint: errcheck

func InitCmd

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

InitCmd returns a command that initializes all files needed for Tendermint and the respective application.

func InitializeNodeValidatorFiles

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

InitializeNodeValidatorFiles creates private validator and p2p configuration files.

func LoadGenesisDoc

func LoadGenesisDoc(cdc *amino.Codec, genFile string) (genDoc types.GenesisDoc, err error)

LoadGenesisDoc reads and unmarshals GenesisDoc from the given file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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