Add full vote to BeginBlock

This commit is contained in:
folex
2019-09-06 11:20:28 +02:00
parent a13a4b8c77
commit 2a1d0542f3
7 changed files with 163 additions and 3 deletions

View File

@ -92,9 +92,12 @@ func TestBeginBlockValidators(t *testing.T) {
tc.expectedAbsentValidators[ctr] == i {
assert.False(t, v.SignedLastBlock)
assert.Nil(t, v.FullVote)
ctr++
} else {
assert.True(t, v.SignedLastBlock)
assert.NotNil(t, v.FullVote)
assert.Equal(t, *v.FullVote, types.Vote(*tc.lastCommitPrecommits[i]))
}
}
}