[types] add Address to GenesisValidator (#2418)

Refs #1714
This commit is contained in:
Anton Kaliaev
2018-09-18 11:59:52 +04:00
committed by GitHub
parent 4fe9906361
commit 38bced2440
6 changed files with 31 additions and 8 deletions
+1
View File
@@ -58,6 +58,7 @@ func initFilesWithConfig(config *cfg.Config) error {
ConsensusParams: types.DefaultConsensusParams(),
}
genDoc.Validators = []types.GenesisValidator{{
Address: pv.GetPubKey().Address(),
PubKey: pv.GetPubKey(),
Power: 10,
}}
+1
View File
@@ -91,6 +91,7 @@ func testnetFiles(cmd *cobra.Command, args []string) error {
pvFile := filepath.Join(nodeDir, config.BaseConfig.PrivValidator)
pv := privval.LoadFilePV(pvFile)
genVals[i] = types.GenesisValidator{
Address: pv.GetPubKey().Address(),
PubKey: pv.GetPubKey(),
Power: 1,
Name: nodeDirName,