fix: genesis typo in error message (#11576)
This commit is contained in:
parent
60733955d3
commit
47d74779ac
|
@ -77,7 +77,7 @@ type Config struct {
|
||||||
TxConfig client.TxConfig
|
TxConfig client.TxConfig
|
||||||
AccountRetriever client.AccountRetriever
|
AccountRetriever client.AccountRetriever
|
||||||
AppConstructor AppConstructor // the ABCI application constructor
|
AppConstructor AppConstructor // the ABCI application constructor
|
||||||
GenesisState map[string]json.RawMessage // custom gensis state to provide
|
GenesisState map[string]json.RawMessage // custom genesis state to provide
|
||||||
TimeoutCommit time.Duration // the consensus commitment timeout
|
TimeoutCommit time.Duration // the consensus commitment timeout
|
||||||
ChainID string // the network chain-id
|
ChainID string // the network chain-id
|
||||||
NumValidators int // the total number of validators to create and bond
|
NumValidators int // the total number of validators to create and bond
|
||||||
|
|
|
@ -37,7 +37,7 @@ func DefaultGenesisState() *GenesisState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate performs basic gensis state validation returning an error upon any
|
// Validate performs basic genesis state validation returning an error upon any
|
||||||
// failure.
|
// failure.
|
||||||
func (gs GenesisState) Validate() error {
|
func (gs GenesisState) Validate() error {
|
||||||
for _, e := range gs.Evidence {
|
for _, e := range gs.Evidence {
|
||||||
|
|
|
@ -163,7 +163,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command {
|
||||||
genDoc.AppState = appState
|
genDoc.AppState = appState
|
||||||
|
|
||||||
if err = genutil.ExportGenesisFile(genDoc, genFile); err != nil {
|
if err = genutil.ExportGenesisFile(genDoc, genFile); err != nil {
|
||||||
return errors.Wrap(err, "Failed to export gensis file")
|
return errors.Wrap(err, "Failed to export genesis file")
|
||||||
}
|
}
|
||||||
|
|
||||||
toPrint := newPrintInfo(config.Moniker, chainID, nodeID, "", appState)
|
toPrint := newPrintInfo(config.Moniker, chainID, nodeID, "", appState)
|
||||||
|
|
Loading…
Reference in New Issue