This commit is contained in:
William Banfield
2022-02-08 18:29:03 -05:00
parent 4e609af1c4
commit 99f3231453

View File

@@ -112,8 +112,10 @@ func (p *Proposal) IsTimely(recvTime time.Time, sp SynchronyParams, round int32)
rhs := p.Timestamp.Add(msgDelay).Add(sp.Precision)
if recvTime.Before(lhs) || recvTime.After(rhs) {
fmt.Println("NOT TIMELY")
return false
}
fmt.Println("TIMELY")
return true
}