[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

View File

@ -307,7 +307,10 @@ func state(nVals, height int) (State, dbm.DB) {
secret := []byte(fmt.Sprintf("test%d", i))
pk := ed25519.GenPrivKeyFromSecret(secret)
vals[i] = types.GenesisValidator{
pk.PubKey(), 1000, fmt.Sprintf("test%d", i),
pk.PubKey().Address(),
pk.PubKey(),
1000,
fmt.Sprintf("test%d", i),
}
}
s, _ := MakeGenesisState(&types.GenesisDoc{