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

@ -29,5 +29,8 @@ func RandVals(cnt int) []types.Validator {
// which allows tests to pass and is fine as long as you
// don't make any tx that modify the validator state
func InitDummy(app *PersistentDummyApplication) {
app.InitChain(types.RequestInitChain{RandVals(1)})
app.InitChain(types.RequestInitChain{
Validators: RandVals(1),
AppStateBytes: []byte("[]"),
})
}