mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
Refactor "lite" to handle delayed validator set changes.
Also, fix consensus liveness issue.
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
||||
// Canonical json is amino's json for structs with fields in alphabetical order
|
||||
|
||||
// TimeFormat is used for generating the sigs
|
||||
const TimeFormat = "2006-01-02T15:04:05.000Z"
|
||||
const TimeFormat = time.RFC3339Nano
|
||||
|
||||
type CanonicalJSONBlockID struct {
|
||||
Hash cmn.HexBytes `json:"hash,omitempty"`
|
||||
@ -110,5 +110,5 @@ func CanonicalTime(t time.Time) string {
|
||||
// Note that sending time over amino resets it to
|
||||
// local time, we need to force UTC here, so the
|
||||
// signatures match
|
||||
return t.UTC().Format(TimeFormat)
|
||||
return t.Round(0).UTC().Format(TimeFormat)
|
||||
}
|
||||
|
Reference in New Issue
Block a user