mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 17:31:34 +00:00
types: RequestInitChain.AppStateBytes
This commit is contained in:
@ -114,7 +114,9 @@ func TestValUpdates(t *testing.T) {
|
||||
nInit := 5
|
||||
vals := RandVals(total)
|
||||
// iniitalize with the first nInit
|
||||
dummy.InitChain(types.RequestInitChain{vals[:nInit]})
|
||||
dummy.InitChain(types.RequestInitChain{
|
||||
Validators: vals[:nInit],
|
||||
})
|
||||
|
||||
vals1, vals2 := vals[:nInit], dummy.Validators()
|
||||
valsEqual(t, vals1, vals2)
|
||||
|
@ -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("[]"),
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user