From f36f94e5e97b01df0f221227d735851a9458cdbd Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 16 Nov 2021 09:58:21 -0500 Subject: [PATCH] minor aesthetic change to IsTimely --- types/proposal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/proposal.go b/types/proposal.go index 0bd90fd4d..b3646cf1d 100644 --- a/types/proposal.go +++ b/types/proposal.go @@ -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