mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-01 15:41:22 +00:00
Force CanonicalTime to UTC
fixes issue with vote serialization breaking the signatures
This commit is contained in:
parent
850310b034
commit
c4860f6c29
@ -113,5 +113,8 @@ func CanonicalHeartbeat(heartbeat *Heartbeat) CanonicalJSONHeartbeat {
|
||||
}
|
||||
|
||||
func CanonicalTime(t time.Time) string {
|
||||
return t.Format(timeFormat)
|
||||
// note that sending time over go-wire resets it to
|
||||
// local time, we need to force UTC here, so the
|
||||
// signatures match
|
||||
return t.UTC().Format(timeFormat)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user