From 7438a650e69ba4f9120264e299bc9cacc9f6a18f Mon Sep 17 00:00:00 2001 From: Karoly Albert Szabo Date: Wed, 20 Mar 2019 19:02:11 +0100 Subject: [PATCH] Validate genesis before running gentx (#3927) Closes: #3825 --- .../bugfixes/gaia/3825-Validate-genesis-before-running-gentx | 1 + cmd/gaia/init/gentx.go | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .pending/bugfixes/gaia/3825-Validate-genesis-before-running-gentx diff --git a/.pending/bugfixes/gaia/3825-Validate-genesis-before-running-gentx b/.pending/bugfixes/gaia/3825-Validate-genesis-before-running-gentx new file mode 100644 index 000000000000..6e70b1f39244 --- /dev/null +++ b/.pending/bugfixes/gaia/3825-Validate-genesis-before-running-gentx @@ -0,0 +1 @@ +#3825 Validate genesis before running gentx \ No newline at end of file diff --git a/cmd/gaia/init/gentx.go b/cmd/gaia/init/gentx.go index 6ce4badecee5..67ebfb87a942 100644 --- a/cmd/gaia/init/gentx.go +++ b/cmd/gaia/init/gentx.go @@ -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