Documentation ¶
Index ¶
- func AddGenesisAccountCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func CollectGenTxsCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func ExportGenesisFile(genFile, chainID string, validators []types.GenesisValidator, ...) error
- func ExportGenesisFileWithTime(genFile, chainID string, validators []types.GenesisValidator, ...) error
- func GenTxCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func InitCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func InitializeNodeValidatorFiles(config *cfg.Config) (nodeID string, valPubKey crypto.PubKey, err error)
- func LoadGenesisDoc(cdc *amino.Codec, genFile string) (genDoc types.GenesisDoc, err error)
- func TestnetFilesCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func ValidateGenesisCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGenesisAccountCmd ¶ added in v0.27.0
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func CollectGenTxsCmd ¶ added in v0.26.0
nolint
func ExportGenesisFile ¶ added in v0.26.0
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 ¶ added in v0.26.0
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 InitCmd ¶
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 ¶ added in v0.31.0
LoadGenesisDoc reads and unmarshals GenesisDoc from the given file.
func TestnetFilesCmd ¶
get cmd to initialize all files for tendermint testnet and application
Types ¶
This section is empty.