Require moniker instead of generating a random one

This commit is contained in:
Aleksandr Bezobchuk
2018-11-12 08:27:26 -05:00
parent 29bec833f3
commit 08a1667246
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec, appInit server.AppInit) *cob
moniker := viper.GetString(flagMoniker)
if moniker == "" {
moniker = fmt.Sprintf("gaianode-%v", common.RandStr(6))
return fmt.Errorf("required flag \"%s\" has not been set", flagMoniker)
}
config.Moniker = moniker