chainrpc: update proto to expose GetBlockHeader
This commit is contained in:
7 files changed
+404
-58
No files matched your search
+196
-58
@@ -118,6 +118,102 @@ func (x *GetBlockResponse) GetRawBlock() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetBlockHeaderRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// The hash of the block with the requested header.
|
||||
BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetBlockHeaderRequest) Reset() {
|
||||
*x = GetBlockHeaderRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetBlockHeaderRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetBlockHeaderRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetBlockHeaderRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetBlockHeaderRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetBlockHeaderRequest) Descriptor() ([]byte, []int) {
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *GetBlockHeaderRequest) GetBlockHash() []byte {
|
||||
if x != nil {
|
||||
return x.BlockHash
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetBlockHeaderResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// The header of the block with the requested hash.
|
||||
RawBlockHeader []byte `protobuf:"bytes,1,opt,name=raw_block_header,json=rawBlockHeader,proto3" json:"raw_block_header,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetBlockHeaderResponse) Reset() {
|
||||
*x = GetBlockHeaderResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetBlockHeaderResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetBlockHeaderResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetBlockHeaderResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetBlockHeaderResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetBlockHeaderResponse) Descriptor() ([]byte, []int) {
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *GetBlockHeaderResponse) GetRawBlockHeader() []byte {
|
||||
if x != nil {
|
||||
return x.RawBlockHeader
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetBestBlockRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -127,7 +223,7 @@ type GetBestBlockRequest struct {
|
||||
func (x *GetBestBlockRequest) Reset() {
|
||||
*x = GetBestBlockRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[2]
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -140,7 +236,7 @@ func (x *GetBestBlockRequest) String() string {
|
||||
func (*GetBestBlockRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetBestBlockRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[2]
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -153,7 +249,7 @@ func (x *GetBestBlockRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GetBestBlockRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetBestBlockRequest) Descriptor() ([]byte, []int) {
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{2}
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
type GetBestBlockResponse struct {
|
||||
@@ -170,7 +266,7 @@ type GetBestBlockResponse struct {
|
||||
func (x *GetBestBlockResponse) Reset() {
|
||||
*x = GetBestBlockResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[3]
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -183,7 +279,7 @@ func (x *GetBestBlockResponse) String() string {
|
||||
func (*GetBestBlockResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetBestBlockResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[3]
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -196,7 +292,7 @@ func (x *GetBestBlockResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GetBestBlockResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetBestBlockResponse) Descriptor() ([]byte, []int) {
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{3}
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *GetBestBlockResponse) GetBlockHash() []byte {
|
||||
@@ -225,7 +321,7 @@ type GetBlockHashRequest struct {
|
||||
func (x *GetBlockHashRequest) Reset() {
|
||||
*x = GetBlockHashRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[4]
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -238,7 +334,7 @@ func (x *GetBlockHashRequest) String() string {
|
||||
func (*GetBlockHashRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetBlockHashRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[4]
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -251,7 +347,7 @@ func (x *GetBlockHashRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GetBlockHashRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetBlockHashRequest) Descriptor() ([]byte, []int) {
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{4}
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *GetBlockHashRequest) GetBlockHeight() int64 {
|
||||
@@ -273,7 +369,7 @@ type GetBlockHashResponse struct {
|
||||
func (x *GetBlockHashResponse) Reset() {
|
||||
*x = GetBlockHashResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[5]
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -286,7 +382,7 @@ func (x *GetBlockHashResponse) String() string {
|
||||
func (*GetBlockHashResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetBlockHashResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[5]
|
||||
mi := &file_chainrpc_chainkit_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -299,7 +395,7 @@ func (x *GetBlockHashResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GetBlockHashResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetBlockHashResponse) Descriptor() ([]byte, []int) {
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{5}
|
||||
return file_chainrpc_chainkit_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *GetBlockHashResponse) GetBlockHash() []byte {
|
||||
@@ -320,39 +416,53 @@ var file_chainrpc_chainkit_proto_rawDesc = []byte{
|
||||
0x6b, 0x48, 0x61, 0x73, 0x68, 0x22, 0x2f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x61, 0x77,
|
||||
0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x61,
|
||||
0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x15, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x65, 0x73,
|
||||
0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x58, 0x0a,
|
||||
0x14, 0x47, 0x65, 0x74, 0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73,
|
||||
0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x36, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f,
|
||||
0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||
0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x22, 0x42,
|
||||
0x0a, 0x16, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x61, 0x77, 0x5f,
|
||||
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64,
|
||||
0x65, 0x72, 0x22, 0x15, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f,
|
||||
0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x58, 0x0a, 0x14, 0x47, 0x65, 0x74,
|
||||
0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68,
|
||||
0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69,
|
||||
0x67, 0x68, 0x74, 0x22, 0x38, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48,
|
||||
0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
||||
0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x35, 0x0a,
|
||||
0x14, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68,
|
||||
0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x48, 0x61, 0x73, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65,
|
||||
0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x38, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21,
|
||||
0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68,
|
||||
0x74, 0x22, 0x35, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73,
|
||||
0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f,
|
||||
0x63, 0x6b, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x62,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x32, 0xeb, 0x01, 0x0a, 0x08, 0x43, 0x68, 0x61,
|
||||
0x69, 0x6e, 0x4b, 0x69, 0x74, 0x12, 0x41, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x12, 0x19, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74,
|
||||
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x63,
|
||||
0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x42,
|
||||
0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1d, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
|
||||
0x48, 0x61, 0x73, 0x68, 0x32, 0xc0, 0x02, 0x0a, 0x08, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x4b, 0x69,
|
||||
0x74, 0x12, 0x41, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x19, 0x2e,
|
||||
0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
|
||||
0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70,
|
||||
0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72,
|
||||
0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74,
|
||||
0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1d, 0x2e, 0x63, 0x68, 0x61, 0x69,
|
||||
0x6e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
|
||||
0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x42,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
|
||||
0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72,
|
||||
0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x42, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72,
|
||||
0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70,
|
||||
0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
|
||||
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6e, 0x65,
|
||||
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6c, 0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2f,
|
||||
0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75,
|
||||
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6e,
|
||||
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6c, 0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72, 0x70, 0x63,
|
||||
0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -367,24 +477,28 @@ func file_chainrpc_chainkit_proto_rawDescGZIP() []byte {
|
||||
return file_chainrpc_chainkit_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_chainrpc_chainkit_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_chainrpc_chainkit_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_chainrpc_chainkit_proto_goTypes = []interface{}{
|
||||
(*GetBlockRequest)(nil), // 0: chainrpc.GetBlockRequest
|
||||
(*GetBlockResponse)(nil), // 1: chainrpc.GetBlockResponse
|
||||
(*GetBestBlockRequest)(nil), // 2: chainrpc.GetBestBlockRequest
|
||||
(*GetBestBlockResponse)(nil), // 3: chainrpc.GetBestBlockResponse
|
||||
(*GetBlockHashRequest)(nil), // 4: chainrpc.GetBlockHashRequest
|
||||
(*GetBlockHashResponse)(nil), // 5: chainrpc.GetBlockHashResponse
|
||||
(*GetBlockRequest)(nil), // 0: chainrpc.GetBlockRequest
|
||||
(*GetBlockResponse)(nil), // 1: chainrpc.GetBlockResponse
|
||||
(*GetBlockHeaderRequest)(nil), // 2: chainrpc.GetBlockHeaderRequest
|
||||
(*GetBlockHeaderResponse)(nil), // 3: chainrpc.GetBlockHeaderResponse
|
||||
(*GetBestBlockRequest)(nil), // 4: chainrpc.GetBestBlockRequest
|
||||
(*GetBestBlockResponse)(nil), // 5: chainrpc.GetBestBlockResponse
|
||||
(*GetBlockHashRequest)(nil), // 6: chainrpc.GetBlockHashRequest
|
||||
(*GetBlockHashResponse)(nil), // 7: chainrpc.GetBlockHashResponse
|
||||
}
|
||||
var file_chainrpc_chainkit_proto_depIdxs = []int32{
|
||||
0, // 0: chainrpc.ChainKit.GetBlock:input_type -> chainrpc.GetBlockRequest
|
||||
2, // 1: chainrpc.ChainKit.GetBestBlock:input_type -> chainrpc.GetBestBlockRequest
|
||||
4, // 2: chainrpc.ChainKit.GetBlockHash:input_type -> chainrpc.GetBlockHashRequest
|
||||
1, // 3: chainrpc.ChainKit.GetBlock:output_type -> chainrpc.GetBlockResponse
|
||||
3, // 4: chainrpc.ChainKit.GetBestBlock:output_type -> chainrpc.GetBestBlockResponse
|
||||
5, // 5: chainrpc.ChainKit.GetBlockHash:output_type -> chainrpc.GetBlockHashResponse
|
||||
3, // [3:6] is the sub-list for method output_type
|
||||
0, // [0:3] is the sub-list for method input_type
|
||||
2, // 1: chainrpc.ChainKit.GetBlockHeader:input_type -> chainrpc.GetBlockHeaderRequest
|
||||
4, // 2: chainrpc.ChainKit.GetBestBlock:input_type -> chainrpc.GetBestBlockRequest
|
||||
6, // 3: chainrpc.ChainKit.GetBlockHash:input_type -> chainrpc.GetBlockHashRequest
|
||||
1, // 4: chainrpc.ChainKit.GetBlock:output_type -> chainrpc.GetBlockResponse
|
||||
3, // 5: chainrpc.ChainKit.GetBlockHeader:output_type -> chainrpc.GetBlockHeaderResponse
|
||||
5, // 6: chainrpc.ChainKit.GetBestBlock:output_type -> chainrpc.GetBestBlockResponse
|
||||
7, // 7: chainrpc.ChainKit.GetBlockHash:output_type -> chainrpc.GetBlockHashResponse
|
||||
4, // [4:8] is the sub-list for method output_type
|
||||
0, // [0:4] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
@@ -421,7 +535,7 @@ func file_chainrpc_chainkit_proto_init() {
|
||||
}
|
||||
}
|
||||
file_chainrpc_chainkit_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetBestBlockRequest); i {
|
||||
switch v := v.(*GetBlockHeaderRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -433,7 +547,7 @@ func file_chainrpc_chainkit_proto_init() {
|
||||
}
|
||||
}
|
||||
file_chainrpc_chainkit_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetBestBlockResponse); i {
|
||||
switch v := v.(*GetBlockHeaderResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -445,7 +559,7 @@ func file_chainrpc_chainkit_proto_init() {
|
||||
}
|
||||
}
|
||||
file_chainrpc_chainkit_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetBlockHashRequest); i {
|
||||
switch v := v.(*GetBestBlockRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -457,6 +571,30 @@ func file_chainrpc_chainkit_proto_init() {
|
||||
}
|
||||
}
|
||||
file_chainrpc_chainkit_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetBestBlockResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_chainrpc_chainkit_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetBlockHashRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_chainrpc_chainkit_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetBlockHashResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -475,7 +613,7 @@ func file_chainrpc_chainkit_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_chainrpc_chainkit_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user