Skip to content

Commit

Permalink
Validate genesis before running gentx (#3927)
Browse files Browse the repository at this point in the history
Closes: #3825
  • Loading branch information
sabau authored and alessio committed Mar 20, 2019
1 parent ae215a2 commit 7438a65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#3825 Validate genesis before running gentx
4 changes: 4 additions & 0 deletions cmd/gaia/init/gentx.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ following delegation and commission default parameters:
return err
}

if err = app.GaiaValidateGenesisState(genesisState); err != nil {
return err
}

kb, err := keys.NewKeyBaseFromDir(viper.GetString(flagClientHome))
if err != nil {
return err
Expand Down

0 comments on commit 7438a65

Please sign in to comment.