mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 20:21:47 +00:00
everything works with https://github.com/tendermint/go-amino/pull/178
This commit is contained in:
@ -39,6 +39,6 @@ message Header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message Timestamp {
|
message Timestamp {
|
||||||
sint64 seconds = 1;
|
sfixed64 seconds = 1;
|
||||||
sint32 nanos = 2;
|
sfixed32 nanos = 2;
|
||||||
}
|
}
|
||||||
|
@ -12,11 +12,12 @@ func TestProto3Compatibility(t *testing.T) {
|
|||||||
// TODO(ismail): table tests instead...
|
// TODO(ismail): table tests instead...
|
||||||
tm, err := time.Parse("Mon Jan 2 15:04:05 -0700 MST 2006", "Mon Jan 2 15:04:05 -0700 MST 2006")
|
tm, err := time.Parse("Mon Jan 2 15:04:05 -0700 MST 2006", "Mon Jan 2 15:04:05 -0700 MST 2006")
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
seconds := tm.Unix()
|
||||||
|
nanos := int32(tm.Nanosecond())
|
||||||
pbHeader := proto3.Header{
|
pbHeader := proto3.Header{
|
||||||
ChainID: "cosmos",
|
ChainID: "cosmos",
|
||||||
Height:150,
|
Height:150,
|
||||||
Time: &proto3.Timestamp{Seconds:tm.Unix(), Nanos:int32(tm.Nanosecond())},
|
Time: &proto3.Timestamp{Seconds:seconds, Nanos:nanos},
|
||||||
NumTxs: 7,
|
NumTxs: 7,
|
||||||
LastBlockID: &proto3.BlockID{
|
LastBlockID: &proto3.BlockID{
|
||||||
Hash: []byte("some serious hashing"),
|
Hash: []byte("some serious hashing"),
|
||||||
|
Reference in New Issue
Block a user