From dea34506fbcb251d3a119556f642248b94a5bd99 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Thu, 6 Sep 2018 17:58:52 -0400 Subject: [PATCH] types/time: add note about stripping monotonic part --- types/time/time.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/time/time.go b/types/time/time.go index 62aca9ec3..022bdf574 100644 --- a/types/time/time.go +++ b/types/time/time.go @@ -11,6 +11,8 @@ func Now() time.Time { } // Canonical returns UTC time with no monotonic component. +// Stripping the monotonic component is for time equality. +// See https://github.com/tendermint/tendermint/pull/2203#discussion_r215064334 func Canonical(t time.Time) time.Time { return t.Round(0).UTC() }