Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7438a65

Browse files
sabaualessio
authored andcommitted
Validate genesis before running gentx (cosmos#3927)
Closes: cosmos#3825
1 parent ae215a2 commit 7438a65

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#3825 Validate genesis before running gentx

cmd/gaia/init/gentx.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ following delegation and commission default parameters:
8888
return err
8989
}
9090

91+
if err = app.GaiaValidateGenesisState(genesisState); err != nil {
92+
return err
93+
}
94+
9195
kb, err := keys.NewKeyBaseFromDir(viper.GetString(flagClientHome))
9296
if err != nil {
9397
return err

0 commit comments

Comments
 (0)