Updated lite tests to set ConsensusHash in header

This commit is contained in:
Ethan Frey
2017-12-14 10:42:52 +01:00
committed by Ethan Buchman
parent d151e36ea8
commit 45bc106de7
8 changed files with 22 additions and 18 deletions

View File

@ -29,7 +29,7 @@ func TestSerializeFullCommits(t *testing.T) {
// build a fc
keys := lite.GenValKeys(5)
vals := keys.ToValidators(10, 0)
fc := keys.GenFullCommit(chainID, h, nil, vals, appHash, 0, 5)
fc := keys.GenFullCommit(chainID, h, nil, vals, appHash, []byte("params"), 0, 5)
require.Equal(h, fc.Height())
require.Equal(vals.Hash(), fc.ValidatorsHash())