Documentation ¶
Index ¶
- func ExportGenesisFile(genFile, chainID string, validators []types.GenesisValidator, ...) error
- func ExportGenesisFileWithTime(genFile, chainID string, validators []types.GenesisValidator, ...) error
- func InitCmd(ctx *server.Context, cdc *codec.Codec, appInit server.AppInit) *cobra.Command
- func InitializeNodeValidatorFiles(config *cfg.Config) (nodeID string, valPubKey crypto.PubKey, err error)
- func ReadOrCreatePrivValidator(privValFile string) crypto.PubKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 InitializeNodeValidatorFiles ¶
func InitializeNodeValidatorFiles( config *cfg.Config) (nodeID string, valPubKey crypto.PubKey, err error, )
InitializeNodeValidatorFiles creates private validator and p2p configuration files.
func ReadOrCreatePrivValidator ¶
read of create the private key file for this config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.