types: fix for broken customtype int in gogo
This commit is contained in:
parent
9e20cfee0e
commit
898ae53672
|
@ -1,5 +1,5 @@
|
||||||
hash: d34d058745681f56adf1e275f74940018655c41abf4cd8d7f2fd748c9f7b6a06
|
hash: b4e6f2f40e2738e45cec07ed91a5733d94d29cdfa0c7eb686a4d0a34512e2097
|
||||||
updated: 2017-12-02T01:50:26.784867491-05:00
|
updated: 2017-12-02T11:58:29.142347101-05:00
|
||||||
imports:
|
imports:
|
||||||
- name: github.com/btcsuite/btcd
|
- name: github.com/btcsuite/btcd
|
||||||
version: 2e60448ffcc6bf78332d1fe590260095f554dd78
|
version: 2e60448ffcc6bf78332d1fe590260095f554dd78
|
||||||
|
@ -69,7 +69,7 @@ imports:
|
||||||
- name: github.com/pkg/errors
|
- name: github.com/pkg/errors
|
||||||
version: 645ef00459ed84a119197bfb8d8205042c6df63d
|
version: 645ef00459ed84a119197bfb8d8205042c6df63d
|
||||||
- name: github.com/rcrowley/go-metrics
|
- name: github.com/rcrowley/go-metrics
|
||||||
version: 1f30fe9094a513ce4c700b9a54458bbb0c96996c
|
version: e181e095bae94582363434144c61a9653aff6e50
|
||||||
- name: github.com/spf13/afero
|
- name: github.com/spf13/afero
|
||||||
version: 8d919cbe7e2627e417f3e45c3c0e489a5b7e2536
|
version: 8d919cbe7e2627e417f3e45c3c0e489a5b7e2536
|
||||||
subpackages:
|
subpackages:
|
||||||
|
@ -100,7 +100,7 @@ imports:
|
||||||
- leveldb/table
|
- leveldb/table
|
||||||
- leveldb/util
|
- leveldb/util
|
||||||
- name: github.com/tendermint/abci
|
- name: github.com/tendermint/abci
|
||||||
version: 82d56571b54f95f2015a33969382b56d2a059ff5
|
version: 48413b4839781c5c4bf96049a4b39f210ceb88c3
|
||||||
subpackages:
|
subpackages:
|
||||||
- client
|
- client
|
||||||
- example/code
|
- example/code
|
||||||
|
@ -162,7 +162,7 @@ imports:
|
||||||
- lex/httplex
|
- lex/httplex
|
||||||
- trace
|
- trace
|
||||||
- name: golang.org/x/sys
|
- name: golang.org/x/sys
|
||||||
version: b98136db334ff9cb24f28a68e3be3cb6608f7630
|
version: 8b4580aae2a0dd0c231a45d3ccb8434ff533b840
|
||||||
subpackages:
|
subpackages:
|
||||||
- unix
|
- unix
|
||||||
- name: golang.org/x/text
|
- name: golang.org/x/text
|
||||||
|
|
|
@ -18,7 +18,7 @@ import:
|
||||||
- package: github.com/spf13/viper
|
- package: github.com/spf13/viper
|
||||||
version: v1.0.0
|
version: v1.0.0
|
||||||
- package: github.com/tendermint/abci
|
- package: github.com/tendermint/abci
|
||||||
version: 82d56571b54f95f2015a33969382b56d2a059ff5
|
version: develop
|
||||||
subpackages:
|
subpackages:
|
||||||
- client
|
- client
|
||||||
- example/dummy
|
- example/dummy
|
||||||
|
|
|
@ -15,7 +15,7 @@ func (tm2pb) Header(header *Header) *types.Header {
|
||||||
ChainId: header.ChainID,
|
ChainId: header.ChainID,
|
||||||
Height: header.Height,
|
Height: header.Height,
|
||||||
Time: header.Time.Unix(),
|
Time: header.Time.Unix(),
|
||||||
NumTxs: header.NumTxs,
|
NumTxs: int32(header.NumTxs), // XXX: overflow
|
||||||
LastBlockId: TM2PB.BlockID(header.LastBlockID),
|
LastBlockId: TM2PB.BlockID(header.LastBlockID),
|
||||||
LastCommitHash: header.LastCommitHash,
|
LastCommitHash: header.LastCommitHash,
|
||||||
DataHash: header.DataHash,
|
DataHash: header.DataHash,
|
||||||
|
@ -32,7 +32,7 @@ func (tm2pb) BlockID(blockID BlockID) *types.BlockID {
|
||||||
|
|
||||||
func (tm2pb) PartSetHeader(partSetHeader PartSetHeader) *types.PartSetHeader {
|
func (tm2pb) PartSetHeader(partSetHeader PartSetHeader) *types.PartSetHeader {
|
||||||
return &types.PartSetHeader{
|
return &types.PartSetHeader{
|
||||||
Total: partSetHeader.Total,
|
Total: int32(partSetHeader.Total), // XXX: overflow
|
||||||
Hash: partSetHeader.Hash,
|
Hash: partSetHeader.Hash,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue