tmtime: Canonical, some comments (#2312)

This commit is contained in:
Ethan Buchman
2018-09-04 12:20:58 +04:00
committed by Anton Kaliaev
parent 166fd82b70
commit eabb1ece8e
4 changed files with 15 additions and 5 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"github.com/tendermint/tendermint/crypto"
cmn "github.com/tendermint/tendermint/libs/common"
tmtime "github.com/tendermint/tendermint/types/time"
)
const (
@@ -79,7 +80,7 @@ func (genDoc *GenesisDoc) ValidateAndComplete() error {
}
if genDoc.GenesisTime.IsZero() {
genDoc.GenesisTime = time.Now()
genDoc.GenesisTime = tmtime.Now()
}
return nil