• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 13412100018

19 Feb 2025 12:05PM UTC coverage: 44.914% (-13.9%) from 58.794%
13412100018

Pull #9521

github

web-flow
Merge 861d6970e into 0e8786348
Pull Request #9521: unit: remove GOACC, use Go 1.20 native coverage functionality

101023 of 224923 relevant lines covered (44.91%)

19479.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

6.61
/lnrpc/chainrpc/chainkit.pb.go
1
// Code generated by protoc-gen-go. DO NOT EDIT.
2
// versions:
3
//         protoc-gen-go v1.33.0
4
//         protoc        v3.21.12
5
// source: chainrpc/chainkit.proto
6

7
package chainrpc
8

9
import (
10
        protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11
        protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12
        reflect "reflect"
13
        sync "sync"
14
)
15

16
const (
17
        // Verify that this generated code is sufficiently up-to-date.
18
        _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
        // Verify that runtime/protoimpl is sufficiently up-to-date.
20
        _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21
)
22

23
type GetBlockRequest struct {
24
        state         protoimpl.MessageState
25
        sizeCache     protoimpl.SizeCache
26
        unknownFields protoimpl.UnknownFields
27

28
        // The hash of the requested block.
29
        BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
30
}
31

32
func (x *GetBlockRequest) Reset() {
×
33
        *x = GetBlockRequest{}
×
34
        if protoimpl.UnsafeEnabled {
×
35
                mi := &file_chainrpc_chainkit_proto_msgTypes[0]
×
36
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
37
                ms.StoreMessageInfo(mi)
×
38
        }
×
39
}
40

41
func (x *GetBlockRequest) String() string {
×
42
        return protoimpl.X.MessageStringOf(x)
×
43
}
×
44

45
func (*GetBlockRequest) ProtoMessage() {}
×
46

47
func (x *GetBlockRequest) ProtoReflect() protoreflect.Message {
×
48
        mi := &file_chainrpc_chainkit_proto_msgTypes[0]
×
49
        if protoimpl.UnsafeEnabled && x != nil {
×
50
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
51
                if ms.LoadMessageInfo() == nil {
×
52
                        ms.StoreMessageInfo(mi)
×
53
                }
×
54
                return ms
×
55
        }
56
        return mi.MessageOf(x)
×
57
}
58

59
// Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead.
60
func (*GetBlockRequest) Descriptor() ([]byte, []int) {
×
61
        return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{0}
×
62
}
×
63

64
func (x *GetBlockRequest) GetBlockHash() []byte {
×
65
        if x != nil {
×
66
                return x.BlockHash
×
67
        }
×
68
        return nil
×
69
}
70

71
// TODO(ffranr): The neutrino GetBlock response includes many
72
// additional helpful fields. Consider adding them here also.
73
type GetBlockResponse struct {
74
        state         protoimpl.MessageState
75
        sizeCache     protoimpl.SizeCache
76
        unknownFields protoimpl.UnknownFields
77

78
        // The raw bytes of the requested block.
79
        RawBlock []byte `protobuf:"bytes,1,opt,name=raw_block,json=rawBlock,proto3" json:"raw_block,omitempty"`
80
}
81

82
func (x *GetBlockResponse) Reset() {
×
83
        *x = GetBlockResponse{}
×
84
        if protoimpl.UnsafeEnabled {
×
85
                mi := &file_chainrpc_chainkit_proto_msgTypes[1]
×
86
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
87
                ms.StoreMessageInfo(mi)
×
88
        }
×
89
}
90

91
func (x *GetBlockResponse) String() string {
×
92
        return protoimpl.X.MessageStringOf(x)
×
93
}
×
94

95
func (*GetBlockResponse) ProtoMessage() {}
×
96

97
func (x *GetBlockResponse) ProtoReflect() protoreflect.Message {
×
98
        mi := &file_chainrpc_chainkit_proto_msgTypes[1]
×
99
        if protoimpl.UnsafeEnabled && x != nil {
×
100
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
101
                if ms.LoadMessageInfo() == nil {
×
102
                        ms.StoreMessageInfo(mi)
×
103
                }
×
104
                return ms
×
105
        }
106
        return mi.MessageOf(x)
×
107
}
108

109
// Deprecated: Use GetBlockResponse.ProtoReflect.Descriptor instead.
110
func (*GetBlockResponse) Descriptor() ([]byte, []int) {
×
111
        return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{1}
×
112
}
×
113

114
func (x *GetBlockResponse) GetRawBlock() []byte {
×
115
        if x != nil {
×
116
                return x.RawBlock
×
117
        }
×
118
        return nil
×
119
}
120

121
type GetBlockHeaderRequest struct {
122
        state         protoimpl.MessageState
123
        sizeCache     protoimpl.SizeCache
124
        unknownFields protoimpl.UnknownFields
125

126
        // The hash of the block with the requested header.
127
        BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
128
}
129

130
func (x *GetBlockHeaderRequest) Reset() {
×
131
        *x = GetBlockHeaderRequest{}
×
132
        if protoimpl.UnsafeEnabled {
×
133
                mi := &file_chainrpc_chainkit_proto_msgTypes[2]
×
134
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
135
                ms.StoreMessageInfo(mi)
×
136
        }
×
137
}
138

139
func (x *GetBlockHeaderRequest) String() string {
×
140
        return protoimpl.X.MessageStringOf(x)
×
141
}
×
142

143
func (*GetBlockHeaderRequest) ProtoMessage() {}
×
144

145
func (x *GetBlockHeaderRequest) ProtoReflect() protoreflect.Message {
×
146
        mi := &file_chainrpc_chainkit_proto_msgTypes[2]
×
147
        if protoimpl.UnsafeEnabled && x != nil {
×
148
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
149
                if ms.LoadMessageInfo() == nil {
×
150
                        ms.StoreMessageInfo(mi)
×
151
                }
×
152
                return ms
×
153
        }
154
        return mi.MessageOf(x)
×
155
}
156

157
// Deprecated: Use GetBlockHeaderRequest.ProtoReflect.Descriptor instead.
158
func (*GetBlockHeaderRequest) Descriptor() ([]byte, []int) {
×
159
        return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{2}
×
160
}
×
161

162
func (x *GetBlockHeaderRequest) GetBlockHash() []byte {
×
163
        if x != nil {
×
164
                return x.BlockHash
×
165
        }
×
166
        return nil
×
167
}
168

169
type GetBlockHeaderResponse struct {
170
        state         protoimpl.MessageState
171
        sizeCache     protoimpl.SizeCache
172
        unknownFields protoimpl.UnknownFields
173

174
        // The header of the block with the requested hash.
175
        RawBlockHeader []byte `protobuf:"bytes,1,opt,name=raw_block_header,json=rawBlockHeader,proto3" json:"raw_block_header,omitempty"`
176
}
177

178
func (x *GetBlockHeaderResponse) Reset() {
×
179
        *x = GetBlockHeaderResponse{}
×
180
        if protoimpl.UnsafeEnabled {
×
181
                mi := &file_chainrpc_chainkit_proto_msgTypes[3]
×
182
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
183
                ms.StoreMessageInfo(mi)
×
184
        }
×
185
}
186

187
func (x *GetBlockHeaderResponse) String() string {
×
188
        return protoimpl.X.MessageStringOf(x)
×
189
}
×
190

191
func (*GetBlockHeaderResponse) ProtoMessage() {}
×
192

193
func (x *GetBlockHeaderResponse) ProtoReflect() protoreflect.Message {
×
194
        mi := &file_chainrpc_chainkit_proto_msgTypes[3]
×
195
        if protoimpl.UnsafeEnabled && x != nil {
×
196
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
197
                if ms.LoadMessageInfo() == nil {
×
198
                        ms.StoreMessageInfo(mi)
×
199
                }
×
200
                return ms
×
201
        }
202
        return mi.MessageOf(x)
×
203
}
204

205
// Deprecated: Use GetBlockHeaderResponse.ProtoReflect.Descriptor instead.
206
func (*GetBlockHeaderResponse) Descriptor() ([]byte, []int) {
×
207
        return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{3}
×
208
}
×
209

210
func (x *GetBlockHeaderResponse) GetRawBlockHeader() []byte {
×
211
        if x != nil {
×
212
                return x.RawBlockHeader
×
213
        }
×
214
        return nil
×
215
}
216

217
type GetBestBlockRequest struct {
218
        state         protoimpl.MessageState
219
        sizeCache     protoimpl.SizeCache
220
        unknownFields protoimpl.UnknownFields
221
}
222

223
func (x *GetBestBlockRequest) Reset() {
×
224
        *x = GetBestBlockRequest{}
×
225
        if protoimpl.UnsafeEnabled {
×
226
                mi := &file_chainrpc_chainkit_proto_msgTypes[4]
×
227
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
228
                ms.StoreMessageInfo(mi)
×
229
        }
×
230
}
231

232
func (x *GetBestBlockRequest) String() string {
×
233
        return protoimpl.X.MessageStringOf(x)
×
234
}
×
235

236
func (*GetBestBlockRequest) ProtoMessage() {}
×
237

238
func (x *GetBestBlockRequest) ProtoReflect() protoreflect.Message {
×
239
        mi := &file_chainrpc_chainkit_proto_msgTypes[4]
×
240
        if protoimpl.UnsafeEnabled && x != nil {
×
241
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
242
                if ms.LoadMessageInfo() == nil {
×
243
                        ms.StoreMessageInfo(mi)
×
244
                }
×
245
                return ms
×
246
        }
247
        return mi.MessageOf(x)
×
248
}
249

250
// Deprecated: Use GetBestBlockRequest.ProtoReflect.Descriptor instead.
251
func (*GetBestBlockRequest) Descriptor() ([]byte, []int) {
×
252
        return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{4}
×
253
}
×
254

255
type GetBestBlockResponse struct {
256
        state         protoimpl.MessageState
257
        sizeCache     protoimpl.SizeCache
258
        unknownFields protoimpl.UnknownFields
259

260
        // The hash of the best block.
261
        BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
262
        // The height of the best block.
263
        BlockHeight int32 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
264
}
265

266
func (x *GetBestBlockResponse) Reset() {
×
267
        *x = GetBestBlockResponse{}
×
268
        if protoimpl.UnsafeEnabled {
×
269
                mi := &file_chainrpc_chainkit_proto_msgTypes[5]
×
270
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
271
                ms.StoreMessageInfo(mi)
×
272
        }
×
273
}
274

275
func (x *GetBestBlockResponse) String() string {
×
276
        return protoimpl.X.MessageStringOf(x)
×
277
}
×
278

279
func (*GetBestBlockResponse) ProtoMessage() {}
×
280

281
func (x *GetBestBlockResponse) ProtoReflect() protoreflect.Message {
×
282
        mi := &file_chainrpc_chainkit_proto_msgTypes[5]
×
283
        if protoimpl.UnsafeEnabled && x != nil {
×
284
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
285
                if ms.LoadMessageInfo() == nil {
×
286
                        ms.StoreMessageInfo(mi)
×
287
                }
×
288
                return ms
×
289
        }
290
        return mi.MessageOf(x)
×
291
}
292

293
// Deprecated: Use GetBestBlockResponse.ProtoReflect.Descriptor instead.
294
func (*GetBestBlockResponse) Descriptor() ([]byte, []int) {
×
295
        return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{5}
×
296
}
×
297

298
func (x *GetBestBlockResponse) GetBlockHash() []byte {
×
299
        if x != nil {
×
300
                return x.BlockHash
×
301
        }
×
302
        return nil
×
303
}
304

305
func (x *GetBestBlockResponse) GetBlockHeight() int32 {
×
306
        if x != nil {
×
307
                return x.BlockHeight
×
308
        }
×
309
        return 0
×
310
}
311

312
type GetBlockHashRequest struct {
313
        state         protoimpl.MessageState
314
        sizeCache     protoimpl.SizeCache
315
        unknownFields protoimpl.UnknownFields
316

317
        // Block height of the target best chain block.
318
        BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
319
}
320

321
func (x *GetBlockHashRequest) Reset() {
×
322
        *x = GetBlockHashRequest{}
×
323
        if protoimpl.UnsafeEnabled {
×
324
                mi := &file_chainrpc_chainkit_proto_msgTypes[6]
×
325
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
326
                ms.StoreMessageInfo(mi)
×
327
        }
×
328
}
329

330
func (x *GetBlockHashRequest) String() string {
×
331
        return protoimpl.X.MessageStringOf(x)
×
332
}
×
333

334
func (*GetBlockHashRequest) ProtoMessage() {}
×
335

336
func (x *GetBlockHashRequest) ProtoReflect() protoreflect.Message {
×
337
        mi := &file_chainrpc_chainkit_proto_msgTypes[6]
×
338
        if protoimpl.UnsafeEnabled && x != nil {
×
339
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
340
                if ms.LoadMessageInfo() == nil {
×
341
                        ms.StoreMessageInfo(mi)
×
342
                }
×
343
                return ms
×
344
        }
345
        return mi.MessageOf(x)
×
346
}
347

348
// Deprecated: Use GetBlockHashRequest.ProtoReflect.Descriptor instead.
349
func (*GetBlockHashRequest) Descriptor() ([]byte, []int) {
×
350
        return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{6}
×
351
}
×
352

353
func (x *GetBlockHashRequest) GetBlockHeight() int64 {
×
354
        if x != nil {
×
355
                return x.BlockHeight
×
356
        }
×
357
        return 0
×
358
}
359

360
type GetBlockHashResponse struct {
361
        state         protoimpl.MessageState
362
        sizeCache     protoimpl.SizeCache
363
        unknownFields protoimpl.UnknownFields
364

365
        // The hash of the best block at the specified height.
366
        BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
367
}
368

369
func (x *GetBlockHashResponse) Reset() {
×
370
        *x = GetBlockHashResponse{}
×
371
        if protoimpl.UnsafeEnabled {
×
372
                mi := &file_chainrpc_chainkit_proto_msgTypes[7]
×
373
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
374
                ms.StoreMessageInfo(mi)
×
375
        }
×
376
}
377

378
func (x *GetBlockHashResponse) String() string {
×
379
        return protoimpl.X.MessageStringOf(x)
×
380
}
×
381

382
func (*GetBlockHashResponse) ProtoMessage() {}
×
383

384
func (x *GetBlockHashResponse) ProtoReflect() protoreflect.Message {
×
385
        mi := &file_chainrpc_chainkit_proto_msgTypes[7]
×
386
        if protoimpl.UnsafeEnabled && x != nil {
×
387
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
388
                if ms.LoadMessageInfo() == nil {
×
389
                        ms.StoreMessageInfo(mi)
×
390
                }
×
391
                return ms
×
392
        }
393
        return mi.MessageOf(x)
×
394
}
395

396
// Deprecated: Use GetBlockHashResponse.ProtoReflect.Descriptor instead.
397
func (*GetBlockHashResponse) Descriptor() ([]byte, []int) {
×
398
        return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{7}
×
399
}
×
400

401
func (x *GetBlockHashResponse) GetBlockHash() []byte {
×
402
        if x != nil {
×
403
                return x.BlockHash
×
404
        }
×
405
        return nil
×
406
}
407

408
var File_chainrpc_chainkit_proto protoreflect.FileDescriptor
409

410
var file_chainrpc_chainkit_proto_rawDesc = []byte{
411
        0x0a, 0x17, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e,
412
        0x6b, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e,
413
        0x72, 0x70, 0x63, 0x22, 0x30, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52,
414
        0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f,
415
        0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63,
416
        0x6b, 0x48, 0x61, 0x73, 0x68, 0x22, 0x2f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63,
417
        0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x61, 0x77,
418
        0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x61,
419
        0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x36, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f,
420
        0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
421
        0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20,
422
        0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x22, 0x42,
423
        0x0a, 0x16, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
424
        0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x61, 0x77, 0x5f,
425
        0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
426
        0x28, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64,
427
        0x65, 0x72, 0x22, 0x15, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f,
428
        0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x58, 0x0a, 0x14, 0x47, 0x65, 0x74,
429
        0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
430
        0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18,
431
        0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68,
432
        0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74,
433
        0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69,
434
        0x67, 0x68, 0x74, 0x22, 0x38, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48,
435
        0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c,
436
        0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
437
        0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x35, 0x0a,
438
        0x14, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73,
439
        0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68,
440
        0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
441
        0x48, 0x61, 0x73, 0x68, 0x32, 0xc0, 0x02, 0x0a, 0x08, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x4b, 0x69,
442
        0x74, 0x12, 0x41, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x19, 0x2e,
443
        0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63,
444
        0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
445
        0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70,
446
        0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
447
        0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70,
448
        0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
449
        0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72,
450
        0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65,
451
        0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74,
452
        0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1d, 0x2e, 0x63, 0x68, 0x61, 0x69,
453
        0x6e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63,
454
        0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
455
        0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
456
        0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x42,
457
        0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
458
        0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68,
459
        0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72,
460
        0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x52,
461
        0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75,
462
        0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6e,
463
        0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6c, 0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72, 0x70, 0x63,
464
        0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
465
        0x33,
466
}
467

468
var (
469
        file_chainrpc_chainkit_proto_rawDescOnce sync.Once
470
        file_chainrpc_chainkit_proto_rawDescData = file_chainrpc_chainkit_proto_rawDesc
471
)
472

473
func file_chainrpc_chainkit_proto_rawDescGZIP() []byte {
×
474
        file_chainrpc_chainkit_proto_rawDescOnce.Do(func() {
×
475
                file_chainrpc_chainkit_proto_rawDescData = protoimpl.X.CompressGZIP(file_chainrpc_chainkit_proto_rawDescData)
×
476
        })
×
477
        return file_chainrpc_chainkit_proto_rawDescData
×
478
}
479

480
var file_chainrpc_chainkit_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
481
var file_chainrpc_chainkit_proto_goTypes = []interface{}{
482
        (*GetBlockRequest)(nil),        // 0: chainrpc.GetBlockRequest
483
        (*GetBlockResponse)(nil),       // 1: chainrpc.GetBlockResponse
484
        (*GetBlockHeaderRequest)(nil),  // 2: chainrpc.GetBlockHeaderRequest
485
        (*GetBlockHeaderResponse)(nil), // 3: chainrpc.GetBlockHeaderResponse
486
        (*GetBestBlockRequest)(nil),    // 4: chainrpc.GetBestBlockRequest
487
        (*GetBestBlockResponse)(nil),   // 5: chainrpc.GetBestBlockResponse
488
        (*GetBlockHashRequest)(nil),    // 6: chainrpc.GetBlockHashRequest
489
        (*GetBlockHashResponse)(nil),   // 7: chainrpc.GetBlockHashResponse
490
}
491
var file_chainrpc_chainkit_proto_depIdxs = []int32{
492
        0, // 0: chainrpc.ChainKit.GetBlock:input_type -> chainrpc.GetBlockRequest
493
        2, // 1: chainrpc.ChainKit.GetBlockHeader:input_type -> chainrpc.GetBlockHeaderRequest
494
        4, // 2: chainrpc.ChainKit.GetBestBlock:input_type -> chainrpc.GetBestBlockRequest
495
        6, // 3: chainrpc.ChainKit.GetBlockHash:input_type -> chainrpc.GetBlockHashRequest
496
        1, // 4: chainrpc.ChainKit.GetBlock:output_type -> chainrpc.GetBlockResponse
497
        3, // 5: chainrpc.ChainKit.GetBlockHeader:output_type -> chainrpc.GetBlockHeaderResponse
498
        5, // 6: chainrpc.ChainKit.GetBestBlock:output_type -> chainrpc.GetBestBlockResponse
499
        7, // 7: chainrpc.ChainKit.GetBlockHash:output_type -> chainrpc.GetBlockHashResponse
500
        4, // [4:8] is the sub-list for method output_type
501
        0, // [0:4] is the sub-list for method input_type
502
        0, // [0:0] is the sub-list for extension type_name
503
        0, // [0:0] is the sub-list for extension extendee
504
        0, // [0:0] is the sub-list for field type_name
505
}
506

507
func init() { file_chainrpc_chainkit_proto_init() }
3✔
508
func file_chainrpc_chainkit_proto_init() {
3✔
509
        if File_chainrpc_chainkit_proto != nil {
3✔
510
                return
×
511
        }
×
512
        if !protoimpl.UnsafeEnabled {
3✔
513
                file_chainrpc_chainkit_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
×
514
                        switch v := v.(*GetBlockRequest); i {
×
515
                        case 0:
×
516
                                return &v.state
×
517
                        case 1:
×
518
                                return &v.sizeCache
×
519
                        case 2:
×
520
                                return &v.unknownFields
×
521
                        default:
×
522
                                return nil
×
523
                        }
524
                }
525
                file_chainrpc_chainkit_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
×
526
                        switch v := v.(*GetBlockResponse); i {
×
527
                        case 0:
×
528
                                return &v.state
×
529
                        case 1:
×
530
                                return &v.sizeCache
×
531
                        case 2:
×
532
                                return &v.unknownFields
×
533
                        default:
×
534
                                return nil
×
535
                        }
536
                }
537
                file_chainrpc_chainkit_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
×
538
                        switch v := v.(*GetBlockHeaderRequest); i {
×
539
                        case 0:
×
540
                                return &v.state
×
541
                        case 1:
×
542
                                return &v.sizeCache
×
543
                        case 2:
×
544
                                return &v.unknownFields
×
545
                        default:
×
546
                                return nil
×
547
                        }
548
                }
549
                file_chainrpc_chainkit_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
×
550
                        switch v := v.(*GetBlockHeaderResponse); i {
×
551
                        case 0:
×
552
                                return &v.state
×
553
                        case 1:
×
554
                                return &v.sizeCache
×
555
                        case 2:
×
556
                                return &v.unknownFields
×
557
                        default:
×
558
                                return nil
×
559
                        }
560
                }
561
                file_chainrpc_chainkit_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
×
562
                        switch v := v.(*GetBestBlockRequest); i {
×
563
                        case 0:
×
564
                                return &v.state
×
565
                        case 1:
×
566
                                return &v.sizeCache
×
567
                        case 2:
×
568
                                return &v.unknownFields
×
569
                        default:
×
570
                                return nil
×
571
                        }
572
                }
573
                file_chainrpc_chainkit_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
×
574
                        switch v := v.(*GetBestBlockResponse); i {
×
575
                        case 0:
×
576
                                return &v.state
×
577
                        case 1:
×
578
                                return &v.sizeCache
×
579
                        case 2:
×
580
                                return &v.unknownFields
×
581
                        default:
×
582
                                return nil
×
583
                        }
584
                }
585
                file_chainrpc_chainkit_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
×
586
                        switch v := v.(*GetBlockHashRequest); i {
×
587
                        case 0:
×
588
                                return &v.state
×
589
                        case 1:
×
590
                                return &v.sizeCache
×
591
                        case 2:
×
592
                                return &v.unknownFields
×
593
                        default:
×
594
                                return nil
×
595
                        }
596
                }
597
                file_chainrpc_chainkit_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
×
598
                        switch v := v.(*GetBlockHashResponse); i {
×
599
                        case 0:
×
600
                                return &v.state
×
601
                        case 1:
×
602
                                return &v.sizeCache
×
603
                        case 2:
×
604
                                return &v.unknownFields
×
605
                        default:
×
606
                                return nil
×
607
                        }
608
                }
609
        }
610
        type x struct{}
3✔
611
        out := protoimpl.TypeBuilder{
3✔
612
                File: protoimpl.DescBuilder{
3✔
613
                        GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
3✔
614
                        RawDescriptor: file_chainrpc_chainkit_proto_rawDesc,
3✔
615
                        NumEnums:      0,
3✔
616
                        NumMessages:   8,
3✔
617
                        NumExtensions: 0,
3✔
618
                        NumServices:   1,
3✔
619
                },
3✔
620
                GoTypes:           file_chainrpc_chainkit_proto_goTypes,
3✔
621
                DependencyIndexes: file_chainrpc_chainkit_proto_depIdxs,
3✔
622
                MessageInfos:      file_chainrpc_chainkit_proto_msgTypes,
3✔
623
        }.Build()
3✔
624
        File_chainrpc_chainkit_proto = out.File
3✔
625
        file_chainrpc_chainkit_proto_rawDesc = nil
3✔
626
        file_chainrpc_chainkit_proto_goTypes = nil
3✔
627
        file_chainrpc_chainkit_proto_depIdxs = nil
3✔
628
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc