mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-24 02:01:43 +00:00
proto3 timestamp (#2064)
This PR changes ABCI time format from int64 (Unix seconds) to WKT (WellKnownType) google.protobuf.Timestamp. Refs #1857 Reasons: better precision standard DT for proto * update Gopkg.lock * [makefile] remove extra grep - go list excludes vendor by default now * proto3 timestamp * [docs/abci-spec] note about serialisation format * make time non-nullable
This commit is contained in:
committed by
Alexander Simmerl
parent
4be6395ee0
commit
96ae535fb8
@ -38,7 +38,7 @@ func (tm2pb) Header(header *Header) abci.Header {
|
||||
ChainID: header.ChainID,
|
||||
Height: header.Height,
|
||||
|
||||
Time: header.Time.Unix(),
|
||||
Time: header.Time,
|
||||
NumTxs: int32(header.NumTxs), // XXX: overflow
|
||||
TotalTxs: header.TotalTxs,
|
||||
|
||||
@ -131,7 +131,7 @@ func (tm2pb) Evidence(ev Evidence, valSet *ValidatorSet, evTime time.Time) abci.
|
||||
Type: evType,
|
||||
Validator: TM2PB.Validator(val),
|
||||
Height: ev.Height(),
|
||||
Time: evTime.Unix(),
|
||||
Time: evTime,
|
||||
TotalVotingPower: valSet.TotalVotingPower(),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user