Use gogoproto's nullable=false (#166)

* Use gogoproto's nullable=false where appropriate.
This commit is contained in:
Jae Kwon
2017-12-22 19:41:19 -08:00
committed by GitHub
parent e4b9f1abe7
commit aaaacba1cd
8 changed files with 174 additions and 173 deletions

View File

@ -13,11 +13,11 @@ import (
func InitChain(client abcicli.Client) error {
total := 10
vals := make([]*types.Validator, total)
vals := make([]types.Validator, total)
for i := 0; i < total; i++ {
pubkey := crypto.GenPrivKeyEd25519FromSecret([]byte(cmn.Fmt("test%d", i))).PubKey().Bytes()
power := cmn.RandInt()
vals[i] = &types.Validator{pubkey, int64(power)}
vals[i] = types.Validator{pubkey, int64(power)}
}
_, err := client.InitChainSync(types.RequestInitChain{Validators: vals})
if err != nil {