Align with spec (#2642)

This commit is contained in:
Zarko Milosevic
2018-10-15 22:05:13 +02:00
committed by Ethan Buchman
parent 37928cb990
commit 287b25a059
6 changed files with 162 additions and 72 deletions

View File

@ -487,6 +487,14 @@ func ensureVote(voteCh <-chan interface{}, height int64, round int,
}
}
func ensurePrecommit(voteCh <-chan interface{}, height int64, round int) {
ensureVote(voteCh, height, round, types.PrecommitType)
}
func ensurePrevote(voteCh <-chan interface{}, height int64, round int) {
ensureVote(voteCh, height, round, types.PrevoteType)
}
func ensureNewEventOnChannel(ch <-chan interface{}) {
select {
case <-time.After(ensureTimeout):