Change AppStateBytes to GenesisBytes

The consensus should pass the entire genesis file to the application.
That way the application has access to the chain_id, the timestap, ...
This commit is contained in:
Adrian Brink
2018-05-13 19:50:15 -04:00
parent ef67705524
commit f80b3aee48
5 changed files with 122 additions and 121 deletions

View File

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