mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-06 16:17:11 +00:00
remove unnecessary casts (Refs #911)
This commit is contained in:
committed by
Ethan Buchman
parent
b3492356e6
commit
86af889dfb
+1
-1
@@ -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