block_query.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.20.0
  5. // source: block_query.proto
  6. package pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. reflect "reflect"
  15. sync "sync"
  16. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type Block struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // 区块 hash
  28. Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // 区块块高
  29. BlockTime int64 `protobuf:"varint,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` // 区块时间
  30. ChainId string `protobuf:"bytes,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // 所在链 ID
  31. TxsCount int64 `protobuf:"varint,5,opt,name=txsCount,proto3" json:"txsCount,omitempty"` // 区块包含的交易数量
  32. Txs []string `protobuf:"bytes,6,rep,name=txs,proto3" json:"txs,omitempty"` // 区块交易
  33. }
  34. func (x *Block) Reset() {
  35. *x = Block{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_block_query_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *Block) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*Block) ProtoMessage() {}
  46. func (x *Block) ProtoReflect() protoreflect.Message {
  47. mi := &file_block_query_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use Block.ProtoReflect.Descriptor instead.
  58. func (*Block) Descriptor() ([]byte, []int) {
  59. return file_block_query_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *Block) GetHash() string {
  62. if x != nil {
  63. return x.Hash
  64. }
  65. return ""
  66. }
  67. func (x *Block) GetHeight() int64 {
  68. if x != nil {
  69. return x.Height
  70. }
  71. return 0
  72. }
  73. func (x *Block) GetBlockTime() int64 {
  74. if x != nil {
  75. return x.BlockTime
  76. }
  77. return 0
  78. }
  79. func (x *Block) GetChainId() string {
  80. if x != nil {
  81. return x.ChainId
  82. }
  83. return ""
  84. }
  85. func (x *Block) GetTxsCount() int64 {
  86. if x != nil {
  87. return x.TxsCount
  88. }
  89. return 0
  90. }
  91. func (x *Block) GetTxs() []string {
  92. if x != nil {
  93. return x.Txs
  94. }
  95. return nil
  96. }
  97. type QueryBlockReq struct {
  98. state protoimpl.MessageState
  99. sizeCache protoimpl.SizeCache
  100. unknownFields protoimpl.UnknownFields
  101. ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // 查询的子链 chain-id
  102. Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // 区块 hash
  103. Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // 区块块高
  104. HasTxs bool `protobuf:"varint,4,opt,name=has_txs,json=hasTxs,proto3" json:"has_txs,omitempty"` // 返回是否包含区块交易
  105. }
  106. func (x *QueryBlockReq) Reset() {
  107. *x = QueryBlockReq{}
  108. if protoimpl.UnsafeEnabled {
  109. mi := &file_block_query_proto_msgTypes[1]
  110. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  111. ms.StoreMessageInfo(mi)
  112. }
  113. }
  114. func (x *QueryBlockReq) String() string {
  115. return protoimpl.X.MessageStringOf(x)
  116. }
  117. func (*QueryBlockReq) ProtoMessage() {}
  118. func (x *QueryBlockReq) ProtoReflect() protoreflect.Message {
  119. mi := &file_block_query_proto_msgTypes[1]
  120. if protoimpl.UnsafeEnabled && x != nil {
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. if ms.LoadMessageInfo() == nil {
  123. ms.StoreMessageInfo(mi)
  124. }
  125. return ms
  126. }
  127. return mi.MessageOf(x)
  128. }
  129. // Deprecated: Use QueryBlockReq.ProtoReflect.Descriptor instead.
  130. func (*QueryBlockReq) Descriptor() ([]byte, []int) {
  131. return file_block_query_proto_rawDescGZIP(), []int{1}
  132. }
  133. func (x *QueryBlockReq) GetChainId() string {
  134. if x != nil {
  135. return x.ChainId
  136. }
  137. return ""
  138. }
  139. func (x *QueryBlockReq) GetHash() string {
  140. if x != nil {
  141. return x.Hash
  142. }
  143. return ""
  144. }
  145. func (x *QueryBlockReq) GetHeight() int64 {
  146. if x != nil {
  147. return x.Height
  148. }
  149. return 0
  150. }
  151. func (x *QueryBlockReq) GetHasTxs() bool {
  152. if x != nil {
  153. return x.HasTxs
  154. }
  155. return false
  156. }
  157. var File_block_query_proto protoreflect.FileDescriptor
  158. var file_block_query_proto_rawDesc = []byte{
  159. 0x0a, 0x11, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72,
  160. 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  161. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9b, 0x01, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12,
  162. 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68,
  163. 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20,
  164. 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62,
  165. 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
  166. 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68,
  167. 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68,
  168. 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x78, 0x73, 0x43, 0x6f, 0x75, 0x6e,
  169. 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x74, 0x78, 0x73, 0x43, 0x6f, 0x75, 0x6e,
  170. 0x74, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03,
  171. 0x74, 0x78, 0x73, 0x22, 0x6f, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x6c, 0x6f, 0x63,
  172. 0x6b, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64,
  173. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12,
  174. 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68,
  175. 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20,
  176. 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x68,
  177. 0x61, 0x73, 0x5f, 0x74, 0x78, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x61,
  178. 0x73, 0x54, 0x78, 0x73, 0x32, 0xb4, 0x01, 0x0a, 0x11, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x51, 0x75,
  179. 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x10, 0x51, 0x75,
  180. 0x65, 0x72, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x11,
  181. 0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65,
  182. 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  183. 0x35, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48,
  184. 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
  185. 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65,
  186. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c,
  187. 0x61, 0x74, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e,
  188. 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e,
  189. 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e,
  190. 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  191. }
  192. var (
  193. file_block_query_proto_rawDescOnce sync.Once
  194. file_block_query_proto_rawDescData = file_block_query_proto_rawDesc
  195. )
  196. func file_block_query_proto_rawDescGZIP() []byte {
  197. file_block_query_proto_rawDescOnce.Do(func() {
  198. file_block_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_block_query_proto_rawDescData)
  199. })
  200. return file_block_query_proto_rawDescData
  201. }
  202. var file_block_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  203. var file_block_query_proto_goTypes = []interface{}{
  204. (*Block)(nil), // 0: pb.Block
  205. (*QueryBlockReq)(nil), // 1: pb.QueryBlockReq
  206. (*Response)(nil), // 2: pb.Response
  207. }
  208. var file_block_query_proto_depIdxs = []int32{
  209. 1, // 0: pb.BlockQueryService.QueryBlockByHash:input_type -> pb.QueryBlockReq
  210. 1, // 1: pb.BlockQueryService.QueryBlockByHeight:input_type -> pb.QueryBlockReq
  211. 1, // 2: pb.BlockQueryService.QueryLatestBlock:input_type -> pb.QueryBlockReq
  212. 2, // 3: pb.BlockQueryService.QueryBlockByHash:output_type -> pb.Response
  213. 2, // 4: pb.BlockQueryService.QueryBlockByHeight:output_type -> pb.Response
  214. 2, // 5: pb.BlockQueryService.QueryLatestBlock:output_type -> pb.Response
  215. 3, // [3:6] is the sub-list for method output_type
  216. 0, // [0:3] is the sub-list for method input_type
  217. 0, // [0:0] is the sub-list for extension type_name
  218. 0, // [0:0] is the sub-list for extension extendee
  219. 0, // [0:0] is the sub-list for field type_name
  220. }
  221. func init() { file_block_query_proto_init() }
  222. func file_block_query_proto_init() {
  223. if File_block_query_proto != nil {
  224. return
  225. }
  226. file_common_proto_init()
  227. if !protoimpl.UnsafeEnabled {
  228. file_block_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  229. switch v := v.(*Block); i {
  230. case 0:
  231. return &v.state
  232. case 1:
  233. return &v.sizeCache
  234. case 2:
  235. return &v.unknownFields
  236. default:
  237. return nil
  238. }
  239. }
  240. file_block_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  241. switch v := v.(*QueryBlockReq); i {
  242. case 0:
  243. return &v.state
  244. case 1:
  245. return &v.sizeCache
  246. case 2:
  247. return &v.unknownFields
  248. default:
  249. return nil
  250. }
  251. }
  252. }
  253. type x struct{}
  254. out := protoimpl.TypeBuilder{
  255. File: protoimpl.DescBuilder{
  256. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  257. RawDescriptor: file_block_query_proto_rawDesc,
  258. NumEnums: 0,
  259. NumMessages: 2,
  260. NumExtensions: 0,
  261. NumServices: 1,
  262. },
  263. GoTypes: file_block_query_proto_goTypes,
  264. DependencyIndexes: file_block_query_proto_depIdxs,
  265. MessageInfos: file_block_query_proto_msgTypes,
  266. }.Build()
  267. File_block_query_proto = out.File
  268. file_block_query_proto_rawDesc = nil
  269. file_block_query_proto_goTypes = nil
  270. file_block_query_proto_depIdxs = nil
  271. }
  272. // Reference imports to suppress errors if they are not otherwise used.
  273. var _ context.Context
  274. var _ grpc.ClientConnInterface
  275. // This is a compile-time assertion to ensure that this generated file
  276. // is compatible with the grpc package it is being compiled against.
  277. const _ = grpc.SupportPackageIsVersion6
  278. // BlockQueryServiceClient is the client API for BlockQueryService service.
  279. //
  280. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  281. type BlockQueryServiceClient interface {
  282. QueryBlockByHash(ctx context.Context, in *QueryBlockReq, opts ...grpc.CallOption) (*Response, error)
  283. QueryBlockByHeight(ctx context.Context, in *QueryBlockReq, opts ...grpc.CallOption) (*Response, error)
  284. QueryLatestBlock(ctx context.Context, in *QueryBlockReq, opts ...grpc.CallOption) (*Response, error)
  285. }
  286. type blockQueryServiceClient struct {
  287. cc grpc.ClientConnInterface
  288. }
  289. func NewBlockQueryServiceClient(cc grpc.ClientConnInterface) BlockQueryServiceClient {
  290. return &blockQueryServiceClient{cc}
  291. }
  292. func (c *blockQueryServiceClient) QueryBlockByHash(ctx context.Context, in *QueryBlockReq, opts ...grpc.CallOption) (*Response, error) {
  293. out := new(Response)
  294. err := c.cc.Invoke(ctx, "/pb.BlockQueryService/QueryBlockByHash", in, out, opts...)
  295. if err != nil {
  296. return nil, err
  297. }
  298. return out, nil
  299. }
  300. func (c *blockQueryServiceClient) QueryBlockByHeight(ctx context.Context, in *QueryBlockReq, opts ...grpc.CallOption) (*Response, error) {
  301. out := new(Response)
  302. err := c.cc.Invoke(ctx, "/pb.BlockQueryService/QueryBlockByHeight", in, out, opts...)
  303. if err != nil {
  304. return nil, err
  305. }
  306. return out, nil
  307. }
  308. func (c *blockQueryServiceClient) QueryLatestBlock(ctx context.Context, in *QueryBlockReq, opts ...grpc.CallOption) (*Response, error) {
  309. out := new(Response)
  310. err := c.cc.Invoke(ctx, "/pb.BlockQueryService/QueryLatestBlock", in, out, opts...)
  311. if err != nil {
  312. return nil, err
  313. }
  314. return out, nil
  315. }
  316. // BlockQueryServiceServer is the server API for BlockQueryService service.
  317. type BlockQueryServiceServer interface {
  318. QueryBlockByHash(context.Context, *QueryBlockReq) (*Response, error)
  319. QueryBlockByHeight(context.Context, *QueryBlockReq) (*Response, error)
  320. QueryLatestBlock(context.Context, *QueryBlockReq) (*Response, error)
  321. }
  322. // UnimplementedBlockQueryServiceServer can be embedded to have forward compatible implementations.
  323. type UnimplementedBlockQueryServiceServer struct {
  324. }
  325. func (*UnimplementedBlockQueryServiceServer) QueryBlockByHash(context.Context, *QueryBlockReq) (*Response, error) {
  326. return nil, status.Errorf(codes.Unimplemented, "method QueryBlockByHash not implemented")
  327. }
  328. func (*UnimplementedBlockQueryServiceServer) QueryBlockByHeight(context.Context, *QueryBlockReq) (*Response, error) {
  329. return nil, status.Errorf(codes.Unimplemented, "method QueryBlockByHeight not implemented")
  330. }
  331. func (*UnimplementedBlockQueryServiceServer) QueryLatestBlock(context.Context, *QueryBlockReq) (*Response, error) {
  332. return nil, status.Errorf(codes.Unimplemented, "method QueryLatestBlock not implemented")
  333. }
  334. func RegisterBlockQueryServiceServer(s *grpc.Server, srv BlockQueryServiceServer) {
  335. s.RegisterService(&_BlockQueryService_serviceDesc, srv)
  336. }
  337. func _BlockQueryService_QueryBlockByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  338. in := new(QueryBlockReq)
  339. if err := dec(in); err != nil {
  340. return nil, err
  341. }
  342. if interceptor == nil {
  343. return srv.(BlockQueryServiceServer).QueryBlockByHash(ctx, in)
  344. }
  345. info := &grpc.UnaryServerInfo{
  346. Server: srv,
  347. FullMethod: "/pb.BlockQueryService/QueryBlockByHash",
  348. }
  349. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  350. return srv.(BlockQueryServiceServer).QueryBlockByHash(ctx, req.(*QueryBlockReq))
  351. }
  352. return interceptor(ctx, in, info, handler)
  353. }
  354. func _BlockQueryService_QueryBlockByHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  355. in := new(QueryBlockReq)
  356. if err := dec(in); err != nil {
  357. return nil, err
  358. }
  359. if interceptor == nil {
  360. return srv.(BlockQueryServiceServer).QueryBlockByHeight(ctx, in)
  361. }
  362. info := &grpc.UnaryServerInfo{
  363. Server: srv,
  364. FullMethod: "/pb.BlockQueryService/QueryBlockByHeight",
  365. }
  366. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  367. return srv.(BlockQueryServiceServer).QueryBlockByHeight(ctx, req.(*QueryBlockReq))
  368. }
  369. return interceptor(ctx, in, info, handler)
  370. }
  371. func _BlockQueryService_QueryLatestBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  372. in := new(QueryBlockReq)
  373. if err := dec(in); err != nil {
  374. return nil, err
  375. }
  376. if interceptor == nil {
  377. return srv.(BlockQueryServiceServer).QueryLatestBlock(ctx, in)
  378. }
  379. info := &grpc.UnaryServerInfo{
  380. Server: srv,
  381. FullMethod: "/pb.BlockQueryService/QueryLatestBlock",
  382. }
  383. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  384. return srv.(BlockQueryServiceServer).QueryLatestBlock(ctx, req.(*QueryBlockReq))
  385. }
  386. return interceptor(ctx, in, info, handler)
  387. }
  388. var _BlockQueryService_serviceDesc = grpc.ServiceDesc{
  389. ServiceName: "pb.BlockQueryService",
  390. HandlerType: (*BlockQueryServiceServer)(nil),
  391. Methods: []grpc.MethodDesc{
  392. {
  393. MethodName: "QueryBlockByHash",
  394. Handler: _BlockQueryService_QueryBlockByHash_Handler,
  395. },
  396. {
  397. MethodName: "QueryBlockByHeight",
  398. Handler: _BlockQueryService_QueryBlockByHeight_Handler,
  399. },
  400. {
  401. MethodName: "QueryLatestBlock",
  402. Handler: _BlockQueryService_QueryLatestBlock_Handler,
  403. },
  404. },
  405. Streams: []grpc.StreamDesc{},
  406. Metadata: "block_query.proto",
  407. }