|
|
@ -5,6 +5,7 @@ package statesync |
|
|
|
|
|
|
|
import ( |
|
|
|
fmt "fmt" |
|
|
|
_ "github.com/gogo/protobuf/gogoproto" |
|
|
|
proto "github.com/gogo/protobuf/proto" |
|
|
|
types "github.com/tendermint/tendermint/proto/tendermint/types" |
|
|
|
io "io" |
|
|
@ -31,6 +32,8 @@ type Message struct { |
|
|
|
// *Message_ChunkResponse
|
|
|
|
// *Message_LightBlockRequest
|
|
|
|
// *Message_LightBlockResponse
|
|
|
|
// *Message_ParamsRequest
|
|
|
|
// *Message_ParamsResponse
|
|
|
|
Sum isMessage_Sum `protobuf_oneof:"sum"` |
|
|
|
} |
|
|
|
|
|
|
@ -91,6 +94,12 @@ type Message_LightBlockRequest struct { |
|
|
|
type Message_LightBlockResponse struct { |
|
|
|
LightBlockResponse *LightBlockResponse `protobuf:"bytes,6,opt,name=light_block_response,json=lightBlockResponse,proto3,oneof" json:"light_block_response,omitempty"` |
|
|
|
} |
|
|
|
type Message_ParamsRequest struct { |
|
|
|
ParamsRequest *ParamsRequest `protobuf:"bytes,7,opt,name=params_request,json=paramsRequest,proto3,oneof" json:"params_request,omitempty"` |
|
|
|
} |
|
|
|
type Message_ParamsResponse struct { |
|
|
|
ParamsResponse *ParamsResponse `protobuf:"bytes,8,opt,name=params_response,json=paramsResponse,proto3,oneof" json:"params_response,omitempty"` |
|
|
|
} |
|
|
|
|
|
|
|
func (*Message_SnapshotsRequest) isMessage_Sum() {} |
|
|
|
func (*Message_SnapshotsResponse) isMessage_Sum() {} |
|
|
@ -98,6 +107,8 @@ func (*Message_ChunkRequest) isMessage_Sum() {} |
|
|
|
func (*Message_ChunkResponse) isMessage_Sum() {} |
|
|
|
func (*Message_LightBlockRequest) isMessage_Sum() {} |
|
|
|
func (*Message_LightBlockResponse) isMessage_Sum() {} |
|
|
|
func (*Message_ParamsRequest) isMessage_Sum() {} |
|
|
|
func (*Message_ParamsResponse) isMessage_Sum() {} |
|
|
|
|
|
|
|
func (m *Message) GetSum() isMessage_Sum { |
|
|
|
if m != nil { |
|
|
@ -148,6 +159,20 @@ func (m *Message) GetLightBlockResponse() *LightBlockResponse { |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Message) GetParamsRequest() *ParamsRequest { |
|
|
|
if x, ok := m.GetSum().(*Message_ParamsRequest); ok { |
|
|
|
return x.ParamsRequest |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Message) GetParamsResponse() *ParamsResponse { |
|
|
|
if x, ok := m.GetSum().(*Message_ParamsResponse); ok { |
|
|
|
return x.ParamsResponse |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
|
|
func (*Message) XXX_OneofWrappers() []interface{} { |
|
|
|
return []interface{}{ |
|
|
@ -157,6 +182,8 @@ func (*Message) XXX_OneofWrappers() []interface{} { |
|
|
|
(*Message_ChunkResponse)(nil), |
|
|
|
(*Message_LightBlockRequest)(nil), |
|
|
|
(*Message_LightBlockResponse)(nil), |
|
|
|
(*Message_ParamsRequest)(nil), |
|
|
|
(*Message_ParamsResponse)(nil), |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -496,6 +523,102 @@ func (m *LightBlockResponse) GetLightBlock() *types.LightBlock { |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
type ParamsRequest struct { |
|
|
|
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsRequest) Reset() { *m = ParamsRequest{} } |
|
|
|
func (m *ParamsRequest) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*ParamsRequest) ProtoMessage() {} |
|
|
|
func (*ParamsRequest) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_a1c2869546ca7914, []int{7} |
|
|
|
} |
|
|
|
func (m *ParamsRequest) XXX_Unmarshal(b []byte) error { |
|
|
|
return m.Unmarshal(b) |
|
|
|
} |
|
|
|
func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
if deterministic { |
|
|
|
return xxx_messageInfo_ParamsRequest.Marshal(b, m, deterministic) |
|
|
|
} else { |
|
|
|
b = b[:cap(b)] |
|
|
|
n, err := m.MarshalToSizedBuffer(b) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return b[:n], nil |
|
|
|
} |
|
|
|
} |
|
|
|
func (m *ParamsRequest) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_ParamsRequest.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *ParamsRequest) XXX_Size() int { |
|
|
|
return m.Size() |
|
|
|
} |
|
|
|
func (m *ParamsRequest) XXX_DiscardUnknown() { |
|
|
|
xxx_messageInfo_ParamsRequest.DiscardUnknown(m) |
|
|
|
} |
|
|
|
|
|
|
|
var xxx_messageInfo_ParamsRequest proto.InternalMessageInfo |
|
|
|
|
|
|
|
func (m *ParamsRequest) GetHeight() uint64 { |
|
|
|
if m != nil { |
|
|
|
return m.Height |
|
|
|
} |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
type ParamsResponse struct { |
|
|
|
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` |
|
|
|
ConsensusParams types.ConsensusParams `protobuf:"bytes,2,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsResponse) Reset() { *m = ParamsResponse{} } |
|
|
|
func (m *ParamsResponse) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*ParamsResponse) ProtoMessage() {} |
|
|
|
func (*ParamsResponse) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_a1c2869546ca7914, []int{8} |
|
|
|
} |
|
|
|
func (m *ParamsResponse) XXX_Unmarshal(b []byte) error { |
|
|
|
return m.Unmarshal(b) |
|
|
|
} |
|
|
|
func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
if deterministic { |
|
|
|
return xxx_messageInfo_ParamsResponse.Marshal(b, m, deterministic) |
|
|
|
} else { |
|
|
|
b = b[:cap(b)] |
|
|
|
n, err := m.MarshalToSizedBuffer(b) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return b[:n], nil |
|
|
|
} |
|
|
|
} |
|
|
|
func (m *ParamsResponse) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_ParamsResponse.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *ParamsResponse) XXX_Size() int { |
|
|
|
return m.Size() |
|
|
|
} |
|
|
|
func (m *ParamsResponse) XXX_DiscardUnknown() { |
|
|
|
xxx_messageInfo_ParamsResponse.DiscardUnknown(m) |
|
|
|
} |
|
|
|
|
|
|
|
var xxx_messageInfo_ParamsResponse proto.InternalMessageInfo |
|
|
|
|
|
|
|
func (m *ParamsResponse) GetHeight() uint64 { |
|
|
|
if m != nil { |
|
|
|
return m.Height |
|
|
|
} |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsResponse) GetConsensusParams() types.ConsensusParams { |
|
|
|
if m != nil { |
|
|
|
return m.ConsensusParams |
|
|
|
} |
|
|
|
return types.ConsensusParams{} |
|
|
|
} |
|
|
|
|
|
|
|
func init() { |
|
|
|
proto.RegisterType((*Message)(nil), "tendermint.statesync.Message") |
|
|
|
proto.RegisterType((*SnapshotsRequest)(nil), "tendermint.statesync.SnapshotsRequest") |
|
|
@ -504,43 +627,51 @@ func init() { |
|
|
|
proto.RegisterType((*ChunkResponse)(nil), "tendermint.statesync.ChunkResponse") |
|
|
|
proto.RegisterType((*LightBlockRequest)(nil), "tendermint.statesync.LightBlockRequest") |
|
|
|
proto.RegisterType((*LightBlockResponse)(nil), "tendermint.statesync.LightBlockResponse") |
|
|
|
proto.RegisterType((*ParamsRequest)(nil), "tendermint.statesync.ParamsRequest") |
|
|
|
proto.RegisterType((*ParamsResponse)(nil), "tendermint.statesync.ParamsResponse") |
|
|
|
} |
|
|
|
|
|
|
|
func init() { proto.RegisterFile("tendermint/statesync/types.proto", fileDescriptor_a1c2869546ca7914) } |
|
|
|
|
|
|
|
var fileDescriptor_a1c2869546ca7914 = []byte{ |
|
|
|
// 485 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x51, 0x6b, 0xd3, 0x50, |
|
|
|
0x14, 0x4e, 0x5c, 0xdb, 0x8d, 0xb3, 0x46, 0x96, 0x63, 0x91, 0x32, 0x46, 0x18, 0x11, 0x74, 0x20, |
|
|
|
0xa4, 0xa0, 0x8f, 0xe2, 0x4b, 0x7d, 0x99, 0x30, 0x5f, 0xee, 0x1c, 0xa8, 0x08, 0x23, 0x4d, 0xaf, |
|
|
|
0x4d, 0xb0, 0x49, 0x6a, 0xcf, 0x2d, 0xb8, 0x1f, 0xe0, 0x93, 0x2f, 0x82, 0x7f, 0xca, 0xc7, 0x3d, |
|
|
|
0xfa, 0x28, 0xed, 0x1f, 0x91, 0x9c, 0xdc, 0x26, 0x77, 0x6d, 0x5d, 0x11, 0xf6, 0x96, 0xef, 0xeb, |
|
|
|
0x77, 0x3e, 0xbe, 0x73, 0xcf, 0xe9, 0x81, 0x63, 0x25, 0xb3, 0xa1, 0x9c, 0xa6, 0x49, 0xa6, 0x7a, |
|
|
|
0xa4, 0x42, 0x25, 0xe9, 0x2a, 0x8b, 0x7a, 0xea, 0x6a, 0x22, 0x29, 0x98, 0x4c, 0x73, 0x95, 0x63, |
|
|
|
0xa7, 0x56, 0x04, 0x95, 0xe2, 0xf0, 0xc8, 0xa8, 0x63, 0xb5, 0x59, 0xe3, 0xff, 0x6c, 0xc0, 0xee, |
|
|
|
0x1b, 0x49, 0x14, 0x8e, 0x24, 0x5e, 0x80, 0x4b, 0x59, 0x38, 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, 0x35, |
|
|
|
0xee, 0xcd, 0x04, 0x00, 0x00, |
|
|
|
// 589 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x4f, 0x8b, 0xd3, 0x40, |
|
|
|
0x18, 0xc6, 0x13, 0xb7, 0xdd, 0x96, 0x77, 0x9b, 0x6e, 0x3b, 0x16, 0x29, 0x65, 0x8d, 0x6b, 0x14, |
|
|
|
0x77, 0x41, 0x68, 0x41, 0x8f, 0xe2, 0xa5, 0x7b, 0x59, 0x61, 0x45, 0x99, 0x75, 0x41, 0x45, 0x28, |
|
|
|
0x69, 0x3a, 0x26, 0xc1, 0xe6, 0x8f, 0x7d, 0xa7, 0xe0, 0x82, 0x57, 0x4f, 0x5e, 0xfc, 0x2c, 0x7e, |
|
|
|
0x8a, 0x3d, 0xee, 0xd1, 0x93, 0x48, 0xfb, 0x45, 0x24, 0x93, 0x69, 0x32, 0x6d, 0xda, 0x2e, 0x82, |
|
|
|
0xb7, 0xbc, 0xcf, 0x3c, 0xf9, 0xf5, 0x99, 0xc9, 0xc3, 0x14, 0x0e, 0x39, 0x0b, 0x47, 0x6c, 0x12, |
|
|
|
0xf8, 0x21, 0xef, 0x21, 0xb7, 0x39, 0xc3, 0xcb, 0xd0, 0xe9, 0xf1, 0xcb, 0x98, 0x61, 0x37, 0x9e, |
|
|
|
0x44, 0x3c, 0x22, 0xad, 0xdc, 0xd1, 0xcd, 0x1c, 0x9d, 0x96, 0x1b, 0xb9, 0x91, 0x30, 0xf4, 0x92, |
|
|
|
0xa7, 0xd4, 0xdb, 0x39, 0x50, 0x68, 0x82, 0xa1, 0x92, 0x3a, 0x77, 0x0b, 0xab, 0xb1, 0x3d, 0xb1, |
|
|
|
0x03, 0xb9, 0x6c, 0xfd, 0x2c, 0x43, 0xe5, 0x25, 0x43, 0xb4, 0x5d, 0x46, 0x2e, 0xa0, 0x89, 0xa1, |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0x12, 0x43, 0x88, 0x53, 0x1c, 0xa4, 0xbd, 0x93, 0x97, 0xd4, 0xfd, |
|
|
|
0x62, 0xac, 0x93, 0x85, 0x33, 0x85, 0xf7, 0x4b, 0x57, 0xbf, 0xef, 0x69, 0x74, 0xdf, 0x59, 0x91, |
|
|
|
0x2f, 0xae, 0x66, 0xa6, 0x7e, 0x3d, 0x33, 0xf5, 0x3f, 0x33, 0x53, 0xff, 0x31, 0x37, 0xb5, 0xeb, |
|
|
|
0xb9, 0xa9, 0xfd, 0x9a, 0x9b, 0xda, 0xfb, 0x67, 0xae, 0xcf, 0xbd, 0xe9, 0xb0, 0xeb, 0x44, 0x41, |
|
|
|
0x4f, 0xbd, 0xa1, 0xf3, 0xc7, 0xf4, 0x9e, 0x5f, 0xf7, 0x4f, 0x31, 0xdc, 0x15, 0x6b, 0x4f, 0xff, |
|
|
|
0x06, 0x00, 0x00, 0xff, 0xff, 0xa1, 0xb2, 0xfd, 0x65, 0x48, 0x06, 0x00, 0x00, |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Message) Marshal() (dAtA []byte, err error) { |
|
|
@ -701,6 +832,48 @@ func (m *Message_LightBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, err |
|
|
|
} |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
func (m *Message_ParamsRequest) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
size := m.Size() |
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Message_ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
i := len(dAtA) |
|
|
|
if m.ParamsRequest != nil { |
|
|
|
{ |
|
|
|
size, err := m.ParamsRequest.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
if err != nil { |
|
|
|
return 0, err |
|
|
|
} |
|
|
|
i -= size |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(size)) |
|
|
|
} |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x3a |
|
|
|
} |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
func (m *Message_ParamsResponse) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
size := m.Size() |
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Message_ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
i := len(dAtA) |
|
|
|
if m.ParamsResponse != nil { |
|
|
|
{ |
|
|
|
size, err := m.ParamsResponse.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
if err != nil { |
|
|
|
return 0, err |
|
|
|
} |
|
|
|
i -= size |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(size)) |
|
|
|
} |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x42 |
|
|
|
} |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
func (m *SnapshotsRequest) Marshal() (dAtA []byte, err error) { |
|
|
|
size := m.Size() |
|
|
|
dAtA = make([]byte, size) |
|
|
@ -932,6 +1105,72 @@ func (m *LightBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsRequest) Marshal() (dAtA []byte, err error) { |
|
|
|
size := m.Size() |
|
|
|
dAtA = make([]byte, size) |
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return dAtA[:n], nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
size := m.Size() |
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
i := len(dAtA) |
|
|
|
_ = i |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
if m.Height != 0 { |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(m.Height)) |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x8 |
|
|
|
} |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsResponse) Marshal() (dAtA []byte, err error) { |
|
|
|
size := m.Size() |
|
|
|
dAtA = make([]byte, size) |
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return dAtA[:n], nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
size := m.Size() |
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
i := len(dAtA) |
|
|
|
_ = i |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
{ |
|
|
|
size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
if err != nil { |
|
|
|
return 0, err |
|
|
|
} |
|
|
|
i -= size |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(size)) |
|
|
|
} |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x12 |
|
|
|
if m.Height != 0 { |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(m.Height)) |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x8 |
|
|
|
} |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
|
|
|
|
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { |
|
|
|
offset -= sovTypes(v) |
|
|
|
base := offset |
|
|
@ -1027,6 +1266,30 @@ func (m *Message_LightBlockResponse) Size() (n int) { |
|
|
|
} |
|
|
|
return n |
|
|
|
} |
|
|
|
func (m *Message_ParamsRequest) Size() (n int) { |
|
|
|
if m == nil { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
if m.ParamsRequest != nil { |
|
|
|
l = m.ParamsRequest.Size() |
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
} |
|
|
|
return n |
|
|
|
} |
|
|
|
func (m *Message_ParamsResponse) Size() (n int) { |
|
|
|
if m == nil { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
if m.ParamsResponse != nil { |
|
|
|
l = m.ParamsResponse.Size() |
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
} |
|
|
|
return n |
|
|
|
} |
|
|
|
func (m *SnapshotsRequest) Size() (n int) { |
|
|
|
if m == nil { |
|
|
|
return 0 |
|
|
@ -1130,6 +1393,32 @@ func (m *LightBlockResponse) Size() (n int) { |
|
|
|
return n |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsRequest) Size() (n int) { |
|
|
|
if m == nil { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
if m.Height != 0 { |
|
|
|
n += 1 + sovTypes(uint64(m.Height)) |
|
|
|
} |
|
|
|
return n |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ParamsResponse) Size() (n int) { |
|
|
|
if m == nil { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
if m.Height != 0 { |
|
|
|
n += 1 + sovTypes(uint64(m.Height)) |
|
|
|
} |
|
|
|
l = m.ConsensusParams.Size() |
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
return n |
|
|
|
} |
|
|
|
|
|
|
|
func sovTypes(x uint64) (n int) { |
|
|
|
return (math_bits.Len64(x|1) + 6) / 7 |
|
|
|
} |
|
|
@ -1375,6 +1664,76 @@ func (m *Message) Unmarshal(dAtA []byte) error { |
|
|
|
} |
|
|
|
m.Sum = &Message_LightBlockResponse{v} |
|
|
|
iNdEx = postIndex |
|
|
|
case 7: |
|
|
|
if wireType != 2 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ParamsRequest", wireType) |
|
|
|
} |
|
|
|
var msglen int |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
if msglen < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
postIndex := iNdEx + msglen |
|
|
|
if postIndex < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if postIndex > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
v := &ParamsRequest{} |
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
m.Sum = &Message_ParamsRequest{v} |
|
|
|
iNdEx = postIndex |
|
|
|
case 8: |
|
|
|
if wireType != 2 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ParamsResponse", wireType) |
|
|
|
} |
|
|
|
var msglen int |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
if msglen < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
postIndex := iNdEx + msglen |
|
|
|
if postIndex < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if postIndex > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
v := &ParamsResponse{} |
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
m.Sum = &Message_ParamsResponse{v} |
|
|
|
iNdEx = postIndex |
|
|
|
default: |
|
|
|
iNdEx = preIndex |
|
|
|
skippy, err := skipTypes(dAtA[iNdEx:]) |
|
|
@ -2044,6 +2403,177 @@ func (m *LightBlockResponse) Unmarshal(dAtA []byte) error { |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
func (m *ParamsRequest) Unmarshal(dAtA []byte) error { |
|
|
|
l := len(dAtA) |
|
|
|
iNdEx := 0 |
|
|
|
for iNdEx < l { |
|
|
|
preIndex := iNdEx |
|
|
|
var wire uint64 |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
wire |= uint64(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
fieldNum := int32(wire >> 3) |
|
|
|
wireType := int(wire & 0x7) |
|
|
|
if wireType == 4 { |
|
|
|
return fmt.Errorf("proto: ParamsRequest: wiretype end group for non-group") |
|
|
|
} |
|
|
|
if fieldNum <= 0 { |
|
|
|
return fmt.Errorf("proto: ParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
} |
|
|
|
switch fieldNum { |
|
|
|
case 1: |
|
|
|
if wireType != 0 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) |
|
|
|
} |
|
|
|
m.Height = 0 |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
m.Height |= uint64(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
default: |
|
|
|
iNdEx = preIndex |
|
|
|
skippy, err := skipTypes(dAtA[iNdEx:]) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
iNdEx += skippy |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
func (m *ParamsResponse) Unmarshal(dAtA []byte) error { |
|
|
|
l := len(dAtA) |
|
|
|
iNdEx := 0 |
|
|
|
for iNdEx < l { |
|
|
|
preIndex := iNdEx |
|
|
|
var wire uint64 |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
wire |= uint64(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
fieldNum := int32(wire >> 3) |
|
|
|
wireType := int(wire & 0x7) |
|
|
|
if wireType == 4 { |
|
|
|
return fmt.Errorf("proto: ParamsResponse: wiretype end group for non-group") |
|
|
|
} |
|
|
|
if fieldNum <= 0 { |
|
|
|
return fmt.Errorf("proto: ParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
} |
|
|
|
switch fieldNum { |
|
|
|
case 1: |
|
|
|
if wireType != 0 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) |
|
|
|
} |
|
|
|
m.Height = 0 |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
m.Height |= uint64(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
case 2: |
|
|
|
if wireType != 2 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType) |
|
|
|
} |
|
|
|
var msglen int |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
if msglen < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
postIndex := iNdEx + msglen |
|
|
|
if postIndex < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if postIndex > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
iNdEx = postIndex |
|
|
|
default: |
|
|
|
iNdEx = preIndex |
|
|
|
skippy, err := skipTypes(dAtA[iNdEx:]) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
iNdEx += skippy |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
func skipTypes(dAtA []byte) (n int, err error) { |
|
|
|
l := len(dAtA) |
|
|
|
iNdEx := 0 |
|
|
|