diff --git a/proto/tendermint/rpc/grpc/types.pb.go b/proto/tendermint/rpc/grpc/types.pb.go index 51e2050899..4b626ae302 100644 --- a/proto/tendermint/rpc/grpc/types.pb.go +++ b/proto/tendermint/rpc/grpc/types.pb.go @@ -110,7 +110,8 @@ func (m *RequestBroadcastTx) GetTx() []byte { } type BlockByHashRequest struct { - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + ProveParts bool `protobuf:"varint,2,opt,name=prove_parts,json=proveParts,proto3" json:"prove_parts,omitempty"` } func (m *BlockByHashRequest) Reset() { *m = BlockByHashRequest{} } @@ -153,8 +154,16 @@ func (m *BlockByHashRequest) GetHash() []byte { return nil } +func (m *BlockByHashRequest) GetProveParts() bool { + if m != nil { + return m.ProveParts + } + return false +} + type BlockByHeightRequest struct { - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + ProveParts bool `protobuf:"varint,2,opt,name=prove_parts,json=proveParts,proto3" json:"prove_parts,omitempty"` } func (m *BlockByHeightRequest) Reset() { *m = BlockByHeightRequest{} } @@ -197,6 +206,13 @@ func (m *BlockByHeightRequest) GetHeight() int64 { return 0 } +func (m *BlockByHeightRequest) GetProveParts() bool { + if m != nil { + return m.ProveParts + } + return false +} + type BlockMetaByHashRequest struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } @@ -893,61 +909,62 @@ func init() { func init() { proto.RegisterFile("tendermint/rpc/grpc/types.proto", fileDescriptor_0ffff5682c662b95) } var fileDescriptor_0ffff5682c662b95 = []byte{ - // 850 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x8f, 0xdb, 0x44, - 0x14, 0x5f, 0xef, 0xdf,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0x97, 0x0e, 0x54, - 0xd5, 0x4a, 0x46, 0xc5, 0x7f, 0x6d, 0xc1, 0xb4, 0xd4, 0x1f, 0xae, 0x81, 0x94, 0x22, 0x63, 0xa8, - 0x17, 0x0c, 0x50, 0xd4, 0x29, 0xf4, 0x50, 0x3e, 0x6a, 0x4b, 0x4e, 0x94, 0xaf, 0xe6, 0xc7, 0x5a, - 0xef, 0xc5, 0xe5, 0xbc, 0xa5, 0xbd, 0x9d, 0xb7, 0xb4, 0x7f, 0xe6, 0x2d, 0xed, 0xf7, 0xab, 0xd6, - 0xc6, 0xdb, 0xab, 0xd6, 0xc6, 0xdf, 0x57, 0xad, 0x8d, 0x5f, 0xba, 0x5e, 0xc0, 0xfd, 0xc9, 0xd0, - 0x74, 0xc8, 0xb8, 0xa3, 0xbe, 0xaa, 0x16, 0x5f, 0x74, 0xa7, 0x0e, 0xa1, 0x38, 0x36, 0x86, 0xbb, - 0xe2, 0x35, 0xf5, 0xc5, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0a, 0xd4, 0x17, 0x5a, 0xf8, 0x09, - 0x00, 0x00, + // 871 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0x3a, 0xff, 0xdc, 0xe7, 0x24, 0x85, 0x71, 0x48, 0xdd, 0x6d, 0xe5, 0x98, 0x05, 0xa9, + 0x29, 0xa4, 0xeb, 0xca, 0x08, 0x21, 0x11, 0x2e, 0x75, 0x5b, 0x89, 0x88, 0x02, 0x61, 0x13, 0x8a, + 0xc4, 0xc5, 0xac, 0x77, 0x47, 0xbb, 0xab, 0xda, 0x3b, 0xcb, 0xcc, 0xd8, 0x75, 0xbf, 0x05, 0x17, + 0xbe, 0x0c, 0x12, 0xf7, 0x1c, 0x7b, 0xe4, 0x54, 0x81, 0xf3, 0x45, 0xd0, 0xcc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 0xe8, 0xbe, 0xb8, 0x9c, 0x36, 0x8d, 0xb7, 0xd3, 0xa6, 0xf1, 0xf7, + 0xb4, 0x69, 0xfc, 0x76, 0xd5, 0x5c, 0x7b, 0x7b, 0xd5, 0x5c, 0xfb, 0xeb, 0xaa, 0xb9, 0xf6, 0x73, + 0x27, 0x88, 0x78, 0x38, 0xea, 0xdb, 0x1e, 0x19, 0xb6, 0xf5, 0x77, 0xd9, 0xfc, 0x9b, 0xf0, 0xc4, + 0x23, 0x14, 0x0b, 0xa1, 0xbf, 0x25, 0xdf, 0x63, 0x9f, 0xfd, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xd2, + 0x50, 0xb6, 0xc4, 0x3a, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1509,6 +1526,16 @@ func (m *BlockByHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ProveParts { + i-- + if m.ProveParts { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } if len(m.Hash) > 0 { i -= len(m.Hash) copy(dAtA[i:], m.Hash) @@ -1539,6 +1566,16 @@ func (m *BlockByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ProveParts { + i-- + if m.ProveParts { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } if m.Height != 0 { i = encodeVarintTypes(dAtA, i, uint64(m.Height)) i-- @@ -2103,6 +2140,9 @@ func (m *BlockByHashRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTypes(uint64(l)) } + if m.ProveParts { + n += 2 + } return n } @@ -2115,6 +2155,9 @@ func (m *BlockByHeightRequest) Size() (n int) { if m.Height != 0 { n += 1 + sovTypes(uint64(m.Height)) } + if m.ProveParts { + n += 2 + } return n } @@ -2524,6 +2567,26 @@ func (m *BlockByHashRequest) Unmarshal(dAtA []byte) error { m.Hash = []byte{} } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProveParts", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProveParts = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:]) @@ -2593,6 +2656,26 @@ func (m *BlockByHeightRequest) Unmarshal(dAtA []byte) error { break } } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProveParts", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProveParts = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:]) diff --git a/proto/tendermint/rpc/grpc/types.proto b/proto/tendermint/rpc/grpc/types.proto index 57fbab8ac6..0f038dc7e2 100644 --- a/proto/tendermint/rpc/grpc/types.proto +++ b/proto/tendermint/rpc/grpc/types.proto @@ -17,11 +17,13 @@ message RequestBroadcastTx { } message BlockByHashRequest { - bytes hash = 1; + bytes hash = 1; + bool prove_parts = 2; } message BlockByHeightRequest { - int64 height = 1; + int64 height = 1; + bool prove_parts = 2; } message BlockMetaByHashRequest { diff --git a/rpc/grpc/api.go b/rpc/grpc/api.go index 07ee5e7078..db69827fef 100644 --- a/rpc/grpc/api.go +++ b/rpc/grpc/api.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "github.com/tendermint/tendermint/proto/tendermint/crypto" "sync" "time" @@ -188,6 +189,9 @@ func (blockAPI *BlockAPI) BlockByHash(req *BlockByHashRequest, stream BlockAPI_B if err != nil { return err } + if !req.ProveParts { + part.Proof = crypto.Proof{} + } isLastPart := i == int(blockMeta.BlockID.PartSetHeader.Total)-1 err = stream.Send(&BlockByHashResponse{ BlockPart: part, @@ -208,6 +212,9 @@ func (blockAPI *BlockAPI) BlockByHeight(req *BlockByHeightRequest, stream BlockA if err != nil { return err } + if !req.ProveParts { + part.Proof = crypto.Proof{} + } isLastPart := i == int(blockMeta.BlockID.PartSetHeader.Total)-1 err = stream.Send(&BlockByHeightResponse{ BlockPart: part, diff --git a/rpc/grpc/types.pb.go b/rpc/grpc/types.pb.go index 51e2050899..4b626ae302 100644 --- a/rpc/grpc/types.pb.go +++ b/rpc/grpc/types.pb.go @@ -110,7 +110,8 @@ func (m *RequestBroadcastTx) GetTx() []byte { } type BlockByHashRequest struct { - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + ProveParts bool `protobuf:"varint,2,opt,name=prove_parts,json=proveParts,proto3" json:"prove_parts,omitempty"` } func (m *BlockByHashRequest) Reset() { *m = BlockByHashRequest{} } @@ -153,8 +154,16 @@ func (m *BlockByHashRequest) GetHash() []byte { return nil } +func (m *BlockByHashRequest) GetProveParts() bool { + if m != nil { + return m.ProveParts + } + return false +} + type BlockByHeightRequest struct { - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + ProveParts bool `protobuf:"varint,2,opt,name=prove_parts,json=proveParts,proto3" json:"prove_parts,omitempty"` } func (m *BlockByHeightRequest) Reset() { *m = BlockByHeightRequest{} } @@ -197,6 +206,13 @@ func (m *BlockByHeightRequest) GetHeight() int64 { return 0 } +func (m *BlockByHeightRequest) GetProveParts() bool { + if m != nil { + return m.ProveParts + } + return false +} + type BlockMetaByHashRequest struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } @@ -893,61 +909,62 @@ func init() { func init() { proto.RegisterFile("tendermint/rpc/grpc/types.proto", fileDescriptor_0ffff5682c662b95) } var fileDescriptor_0ffff5682c662b95 = []byte{ - // 850 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x8f, 0xdb, 0x44, - 0x14, 0x5f, 0xef, 0xdf, 0xf4, 0x6d, 0x36, 0x85, 0x49, 0xd8, 0xa6, 0x6e, 0x95, 0x0d, 0x06, 0xa9, - 0x5b, 0xd8, 0x3a, 0x55, 0x10, 0x42, 0x62, 0xb9, 0x34, 0x6d, 0x25, 0x56, 0x14, 0x14, 0xbc, 0x4b, - 0x91, 0xb8, 0x04, 0xc7, 0x1e, 0xd9, 0x56, 0x13, 0x8f, 0x99, 0x99, 0xa4, 0xe9, 0xb7, 0xe0, 0xc2, - 0x97, 0x41, 0xe2, 0xbe, 0xc7, 0x1e, 0x39, 0x55, 0x90, 0xfd, 0x22, 0xc8, 0xe3, 0xb1, 0x77, 0xbc, - 0xb1, 0x93, 0x1c, 0xe8, 0x25, 0x7a, 0x9e, 0xf9, 0xfd, 0xde, 0xef, 0xcd, 0xe4, 0xfd, 0x19, 0x38, - 0xe2, 0x38, 0x74, 0x31, 0x1d, 0x07, 0x21, 0xef, 0xd0, 0xc8, 0xe9, 0x78, 0xf1, 0x0f, 0x7f, 0x13, - 0x61, 0x66, 0x46, 0x94, 0x70, 0x82, 0xea, 0xd7, 0x00, 0x93, 0x46, 0x8e, 0x19, 0x03, 0xf4, 0x7b, - 0x0a, 0xcb, 0x1e, 0x3a, 0x81, 0xca, 0xd0, 0xef, 0x2b, 0x9b, 0x62, 0x3d, 0xb7, 0xdb, 0x5e, 0xd8, - 0x9d, 0xda, 0xa3, 0xc0, 0xb5, 0x39, 0xa1, 0x12, 0xd1, 0xf0, 0x88, 0x47, 0x84, 0xd9, 0x89, 0xad, - 0x64, 0xd5, 0x38, 0x80, 0x7d, 0x0b, 0xff, 0x36, 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, 0x9a, 0x9d, 0x8b, 0xc2, 0x87, - 0x0b, 0x7d, 0x02, 0x3d, 0x5a, 0x19, 0x6c, 0x4e, 0xd1, 0x5c, 0x17, 0x2e, 0x4f, 0xf7, 0x23, 0xec, - 0x26, 0x65, 0x89, 0x8c, 0x42, 0x66, 0x6e, 0xfa, 0xe9, 0x9f, 0x2c, 0xc5, 0x48, 0x97, 0x0e, 0x54, - 0xd5, 0x4a, 0x46, 0xc5, 0x7f, 0x6d, 0xc1, 0xb4, 0xd4, 0x1f, 0xae, 0x81, 0x94, 0x22, 0x63, 0xa8, - 0x17, 0x0c, 0x50, 0xd4, 0x29, 0xf4, 0x50, 0x3e, 0x6a, 0x4b, 0x4e, 0x94, 0xaf, 0xe6, 0xc7, 0x5a, - 0xef, 0xc5, 0xe5, 0xbc, 0xa5, 0xbd, 0x9d, 0xb7, 0xb4, 0x7f, 0xe6, 0x2d, 0xed, 0xf7, 0xab, 0xd6, - 0xc6, 0xdb, 0xab, 0xd6, 0xc6, 0xdf, 0x57, 0xad, 0x8d, 0x5f, 0xba, 0x5e, 0xc0, 0xfd, 0xc9, 0xd0, - 0x74, 0xc8, 0xb8, 0xa3, 0xbe, 0xaa, 0x16, 0x5f, 0x74, 0xa7, 0x0e, 0xa1, 0x38, 0x36, 0x86, 0xbb, - 0xe2, 0x35, 0xf5, 0xc5, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0a, 0xd4, 0x17, 0x5a, 0xf8, 0x09, - 0x00, 0x00, + // 871 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0x3a, 0xff, 0xdc, 0xe7, 0x24, 0x85, 0x71, 0x48, 0xdd, 0x6d, 0xe5, 0x98, 0x05, 0xa9, + 0x29, 0xa4, 0xeb, 0xca, 0x08, 0x21, 0x11, 0x2e, 0x75, 0x5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xca, 0xa4, 0x07, 0x3b, 0x7a, 0x27, 0xa3, 0xe2, 0xd4, 0x16, 0x6c, 0x4b, 0xf3, 0xe1, + 0x0a, 0x48, 0xe5, 0x64, 0x08, 0xf5, 0x82, 0x05, 0x8a, 0xda, 0x85, 0x16, 0xca, 0x57, 0x6d, 0xc9, + 0x8d, 0xf2, 0xdd, 0xfc, 0xd8, 0xe8, 0xbe, 0xb8, 0x9c, 0x36, 0x8d, 0xb7, 0xd3, 0xa6, 0xf1, 0xf7, + 0xb4, 0x69, 0xfc, 0x76, 0xd5, 0x5c, 0x7b, 0x7b, 0xd5, 0x5c, 0xfb, 0xeb, 0xaa, 0xb9, 0xf6, 0x73, + 0x27, 0x88, 0x78, 0x38, 0xea, 0xdb, 0x1e, 0x19, 0xb6, 0xf5, 0x77, 0xd9, 0xfc, 0x9b, 0xf0, 0xc4, + 0x23, 0x14, 0x0b, 0xa1, 0xbf, 0x25, 0xdf, 0x63, 0x9f, 0xfd, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xd2, + 0x50, 0xb6, 0xc4, 0x3a, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1509,6 +1526,16 @@ func (m *BlockByHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ProveParts { + i-- + if m.ProveParts { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } if len(m.Hash) > 0 { i -= len(m.Hash) copy(dAtA[i:], m.Hash) @@ -1539,6 +1566,16 @@ func (m *BlockByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ProveParts { + i-- + if m.ProveParts { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } if m.Height != 0 { i = encodeVarintTypes(dAtA, i, uint64(m.Height)) i-- @@ -2103,6 +2140,9 @@ func (m *BlockByHashRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTypes(uint64(l)) } + if m.ProveParts { + n += 2 + } return n } @@ -2115,6 +2155,9 @@ func (m *BlockByHeightRequest) Size() (n int) { if m.Height != 0 { n += 1 + sovTypes(uint64(m.Height)) } + if m.ProveParts { + n += 2 + } return n } @@ -2524,6 +2567,26 @@ func (m *BlockByHashRequest) Unmarshal(dAtA []byte) error { m.Hash = []byte{} } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProveParts", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProveParts = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:]) @@ -2593,6 +2656,26 @@ func (m *BlockByHeightRequest) Unmarshal(dAtA []byte) error { break } } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProveParts", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProveParts = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:])