mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-22 07:06:14 +00:00
Fix lint errors
This commit is contained in:
+3
-3
@@ -96,9 +96,9 @@ func (p *Proposal) IsTimely(clock tmtime.Source, tp TimingParams, genesisHeight
|
||||
// rhs is `proposedBlockTime + MsgDelay + Precision` in the second inequality
|
||||
rhs := p.Timestamp.Add(tp.MessageDelay).Add(tp.Precision)
|
||||
|
||||
localTimeAfterOrEqLhs := localTime.After(lhs) || localTime.Equal(lhs)
|
||||
localTimeBeforeOrEqRhs := localTime.Before(rhs) || localTime.Equal(rhs)
|
||||
if localTimeAfterOrEqLhs && (p.Height == genesisHeight || localTimeBeforeOrEqRhs) {
|
||||
localTimeAfterOrEqLHS := localTime.After(lhs) || localTime.Equal(lhs)
|
||||
localTimeBeforeOrEqRHS := localTime.Before(rhs) || localTime.Equal(rhs)
|
||||
if localTimeAfterOrEqLHS && (p.Height == genesisHeight || localTimeBeforeOrEqRHS) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user