minor aesthetic change to IsTimely

This commit is contained in:
William Banfield
2021-11-16 09:58:21 -05:00
parent 4a5e6da299
commit f36f94e5e9

View File

@@ -92,7 +92,7 @@ func (p *Proposal) IsTimely(clock tmtime.Source, tp TimestampParams) bool {
lt := clock.Now()
lhs := lt.Add(-tp.Precision)
rhs := lt.Add(tp.Precision).Add(tp.MsgDelay)
if lhs.Before(p.Timestamp) && p.Timestamp.Before(rhs) {
if lhs.Before(p.Timestamp) && rhs.After(p.Timestamp) {
return true
}
return false