remove unnecessary casts (Refs #911)

This commit is contained in:
Anton Kaliaev
2017-11-30 18:49:40 -06:00
committed by Ethan Buchman
parent b3492356e6
commit 86af889dfb
3 changed files with 5 additions and 6 deletions

View File

@ -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),