types: RequestInitChain.AppStateBytes

This commit is contained in:
Ethan Buchman
2018-02-16 19:49:33 -05:00
parent b1e29d22f6
commit a6be687088
6 changed files with 133 additions and 114 deletions

View File

@ -18,7 +18,10 @@ func InitChain(client abcicli.Client) error {
power := cmn.RandInt()
vals[i] = types.Validator{pubkey, int64(power)}
}
_, err := client.InitChainSync(types.RequestInitChain{Validators: vals})
_, err := client.InitChainSync(types.RequestInitChain{
Validators: vals,
AppStateBytes: []byte("{}"),
})
if err != nil {
fmt.Printf("Failed test: InitChain - %v\n", err)
return err