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

@ -30,7 +30,7 @@ func RandVals(cnt int) []types.Validator {
// don't make any tx that modify the validator state
func InitKVStore(app *PersistentKVStoreApplication) {
app.InitChain(types.RequestInitChain{
Validators: RandVals(1),
AppStateBytes: []byte("[]"),
Validators: RandVals(1),
GenesisBytes: []byte("[]"),
})
}