cosmos-sdk/x/ibc
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
..
applications/transfer Refactor Logging using Zerolog (#8072) 2020-12-03 23:17:21 +00:00
core Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
light-clients x/ibc/light-clients: simplify max time comparison (#8089) 2020-12-08 13:47:20 +01:00
spec ibc: spec overview (#7853) 2020-11-09 12:44:20 +01:00
testing Implement Connection-specified delay (#8069) 2020-12-07 12:13:06 +00:00