cosmos-sdk/x/ibc/light-clients
Emmanuel T Odeke e38a6df9cd
x/ibc/light-clients: simplify max time comparison (#8089)
The prior code that tried to get the newest/larger time
between the too performed:
* 2 time.Time.UnixNano() retrievals: 2 multiplications, 2 additions
* 1 math.Max comparison
* 1 time.Unix(0, minTime) creation

but really this code could just use native operations on:
time.Time.After() simply.

This now becomes a single operation, single comparison for the same effect.
2020-12-08 13:47:20 +01:00
..
06-solomachine Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
07-tendermint x/ibc/light-clients: simplify max time comparison (#8089) 2020-12-08 13:47:20 +01:00
09-localhost Implement Connection-specified delay (#8069) 2020-12-07 12:13:06 +00:00