mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
remove unnecessary casts (Refs #911)
This commit is contained in:
committed by
Ethan Buchman
parent
b3492356e6
commit
86af889dfb
@ -13,7 +13,7 @@ type tm2pb struct{}
|
||||
func (tm2pb) Header(header *Header) *types.Header {
|
||||
return &types.Header{
|
||||
ChainId: header.ChainID,
|
||||
Height: uint64(header.Height),
|
||||
Height: header.Height,
|
||||
Time: uint64(header.Time.Unix()),
|
||||
NumTxs: uint64(header.NumTxs),
|
||||
LastBlockId: TM2PB.BlockID(header.LastBlockID),
|
||||
|
Reference in New Issue
Block a user