types: builds

This commit is contained in:
Ethan Buchman
2018-02-15 14:26:49 -05:00
parent d2cd079541
commit 3395f5fb0e
13 changed files with 30 additions and 30 deletions

View File

@@ -3,11 +3,11 @@ package types
import (
"time"
wire "github.com/tendermint/go-wire"
wire "github.com/tendermint/tendermint/wire"
cmn "github.com/tendermint/tmlibs/common"
)
// canonical json is go-wire's json for structs with fields in alphabetical order
// canonical json is wire's json for structs with fields in alphabetical order
// TimeFormat is used for generating the sigs
const TimeFormat = wire.RFC3339Millis
@@ -114,7 +114,7 @@ func CanonicalHeartbeat(heartbeat *Heartbeat) CanonicalJSONHeartbeat {
}
func CanonicalTime(t time.Time) string {
// note that sending time over go-wire resets it to
// note that sending time over wire resets it to
// local time, we need to force UTC here, so the
// signatures match
return t.UTC().Format(TimeFormat)