mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-28 02:44:16 +00:00
tmtime: Canonical, some comments (#2312)
This commit is contained in:
committed by
Anton Kaliaev
parent
166fd82b70
commit
eabb1ece8e
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user