types: drop uint64 from protobuf.go

This commit is contained in:
Ethan Buchman 2017-12-02 01:07:17 -05:00
parent 89cbcceac4
commit 388f66c9b3
1 changed files with 5 additions and 5 deletions

View File

@ -13,9 +13,9 @@ type tm2pb struct{}
func (tm2pb) Header(header *Header) *types.Header {
return &types.Header{
ChainId: header.ChainID,
Height: uint64(header.Height),
Time: uint64(header.Time.Unix()),
NumTxs: uint64(header.NumTxs),
Height: header.Height,
Time: header.Time.Unix(),
NumTxs: header.NumTxs,
LastBlockId: TM2PB.BlockID(header.LastBlockID),
LastCommitHash: header.LastCommitHash,
DataHash: header.DataHash,
@ -32,7 +32,7 @@ func (tm2pb) BlockID(blockID BlockID) *types.BlockID {
func (tm2pb) PartSetHeader(partSetHeader PartSetHeader) *types.PartSetHeader {
return &types.PartSetHeader{
Total: uint64(partSetHeader.Total),
Total: partSetHeader.Total,
Hash: partSetHeader.Hash,
}
}
@ -40,7 +40,7 @@ func (tm2pb) PartSetHeader(partSetHeader PartSetHeader) *types.PartSetHeader {
func (tm2pb) Validator(val *Validator) *types.Validator {
return &types.Validator{
PubKey: val.PubKey.Bytes(),
Power: uint64(val.VotingPower),
Power: val.VotingPower,
}
}