Override Finalized State Announcement Proto (#2623)

This commit is contained in:
Raul Jordan
2019-05-17 10:59:00 -04:00
committed by terence tsao
parent d20c3d6cf7
commit 40fb4b01fa
2 changed files with 89 additions and 499 deletions

View File

@@ -945,108 +945,6 @@ func (m *FinalizedStateAnnounce) GetSlot() uint64 {
return 0
}
type FinalizedStateRequest struct {
StateRoot []byte `protobuf:"bytes,1,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
Slot uint64 `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FinalizedStateRequest) Reset() { *m = FinalizedStateRequest{} }
func (m *FinalizedStateRequest) String() string { return proto.CompactTextString(m) }
func (*FinalizedStateRequest) ProtoMessage() {}
func (*FinalizedStateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{16}
}
func (m *FinalizedStateRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FinalizedStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FinalizedStateRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FinalizedStateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FinalizedStateRequest.Merge(m, src)
}
func (m *FinalizedStateRequest) XXX_Size() int {
return m.Size()
}
func (m *FinalizedStateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FinalizedStateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FinalizedStateRequest proto.InternalMessageInfo
func (m *FinalizedStateRequest) GetStateRoot() []byte {
if m != nil {
return m.StateRoot
}
return nil
}
func (m *FinalizedStateRequest) GetSlot() uint64 {
if m != nil {
return m.Slot
}
return 0
}
type FinalizedStateResponse struct {
FinalizedState *BeaconState `protobuf:"bytes,1,opt,name=finalized_state,json=finalizedState,proto3" json:"finalized_state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FinalizedStateResponse) Reset() { *m = FinalizedStateResponse{} }
func (m *FinalizedStateResponse) String() string { return proto.CompactTextString(m) }
func (*FinalizedStateResponse) ProtoMessage() {}
func (*FinalizedStateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{17}
}
func (m *FinalizedStateResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FinalizedStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FinalizedStateResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FinalizedStateResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FinalizedStateResponse.Merge(m, src)
}
func (m *FinalizedStateResponse) XXX_Size() int {
return m.Size()
}
func (m *FinalizedStateResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FinalizedStateResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FinalizedStateResponse proto.InternalMessageInfo
func (m *FinalizedStateResponse) GetFinalizedState() *BeaconState {
if m != nil {
return m.FinalizedState
}
return nil
}
type ProposerSlashingAnnounce struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
@@ -1058,7 +956,7 @@ func (m *ProposerSlashingAnnounce) Reset() { *m = ProposerSlashingAnnoun
func (m *ProposerSlashingAnnounce) String() string { return proto.CompactTextString(m) }
func (*ProposerSlashingAnnounce) ProtoMessage() {}
func (*ProposerSlashingAnnounce) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{18}
return fileDescriptor_a1d590cda035b632, []int{16}
}
func (m *ProposerSlashingAnnounce) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1105,7 +1003,7 @@ func (m *ProposerSlashingRequest) Reset() { *m = ProposerSlashingRequest
func (m *ProposerSlashingRequest) String() string { return proto.CompactTextString(m) }
func (*ProposerSlashingRequest) ProtoMessage() {}
func (*ProposerSlashingRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{19}
return fileDescriptor_a1d590cda035b632, []int{17}
}
func (m *ProposerSlashingRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1153,7 +1051,7 @@ func (m *ProposerSlashingResponse) Reset() { *m = ProposerSlashingRespon
func (m *ProposerSlashingResponse) String() string { return proto.CompactTextString(m) }
func (*ProposerSlashingResponse) ProtoMessage() {}
func (*ProposerSlashingResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{20}
return fileDescriptor_a1d590cda035b632, []int{18}
}
func (m *ProposerSlashingResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1207,7 +1105,7 @@ func (m *AttesterSlashingAnnounce) Reset() { *m = AttesterSlashingAnnoun
func (m *AttesterSlashingAnnounce) String() string { return proto.CompactTextString(m) }
func (*AttesterSlashingAnnounce) ProtoMessage() {}
func (*AttesterSlashingAnnounce) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{21}
return fileDescriptor_a1d590cda035b632, []int{19}
}
func (m *AttesterSlashingAnnounce) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1254,7 +1152,7 @@ func (m *AttesterSlashingRequest) Reset() { *m = AttesterSlashingRequest
func (m *AttesterSlashingRequest) String() string { return proto.CompactTextString(m) }
func (*AttesterSlashingRequest) ProtoMessage() {}
func (*AttesterSlashingRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{22}
return fileDescriptor_a1d590cda035b632, []int{20}
}
func (m *AttesterSlashingRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1302,7 +1200,7 @@ func (m *AttesterSlashingResponse) Reset() { *m = AttesterSlashingRespon
func (m *AttesterSlashingResponse) String() string { return proto.CompactTextString(m) }
func (*AttesterSlashingResponse) ProtoMessage() {}
func (*AttesterSlashingResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{23}
return fileDescriptor_a1d590cda035b632, []int{21}
}
func (m *AttesterSlashingResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1356,7 +1254,7 @@ func (m *DepositAnnounce) Reset() { *m = DepositAnnounce{} }
func (m *DepositAnnounce) String() string { return proto.CompactTextString(m) }
func (*DepositAnnounce) ProtoMessage() {}
func (*DepositAnnounce) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{24}
return fileDescriptor_a1d590cda035b632, []int{22}
}
func (m *DepositAnnounce) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1403,7 +1301,7 @@ func (m *DepositRequest) Reset() { *m = DepositRequest{} }
func (m *DepositRequest) String() string { return proto.CompactTextString(m) }
func (*DepositRequest) ProtoMessage() {}
func (*DepositRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{25}
return fileDescriptor_a1d590cda035b632, []int{23}
}
func (m *DepositRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1451,7 +1349,7 @@ func (m *DepositResponse) Reset() { *m = DepositResponse{} }
func (m *DepositResponse) String() string { return proto.CompactTextString(m) }
func (*DepositResponse) ProtoMessage() {}
func (*DepositResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{26}
return fileDescriptor_a1d590cda035b632, []int{24}
}
func (m *DepositResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1505,7 +1403,7 @@ func (m *ExitAnnounce) Reset() { *m = ExitAnnounce{} }
func (m *ExitAnnounce) String() string { return proto.CompactTextString(m) }
func (*ExitAnnounce) ProtoMessage() {}
func (*ExitAnnounce) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{27}
return fileDescriptor_a1d590cda035b632, []int{25}
}
func (m *ExitAnnounce) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1552,7 +1450,7 @@ func (m *ExitRequest) Reset() { *m = ExitRequest{} }
func (m *ExitRequest) String() string { return proto.CompactTextString(m) }
func (*ExitRequest) ProtoMessage() {}
func (*ExitRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{28}
return fileDescriptor_a1d590cda035b632, []int{26}
}
func (m *ExitRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1600,7 +1498,7 @@ func (m *ExitResponse) Reset() { *m = ExitResponse{} }
func (m *ExitResponse) String() string { return proto.CompactTextString(m) }
func (*ExitResponse) ProtoMessage() {}
func (*ExitResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{29}
return fileDescriptor_a1d590cda035b632, []int{27}
}
func (m *ExitResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1654,7 +1552,7 @@ func (m *Handshake) Reset() { *m = Handshake{} }
func (m *Handshake) String() string { return proto.CompactTextString(m) }
func (*Handshake) ProtoMessage() {}
func (*Handshake) Descriptor() ([]byte, []int) {
return fileDescriptor_a1d590cda035b632, []int{30}
return fileDescriptor_a1d590cda035b632, []int{28}
}
func (m *Handshake) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1708,8 +1606,6 @@ func init() {
proto.RegisterType((*AttestationRequest)(nil), "ethereum.beacon.p2p.v1.AttestationRequest")
proto.RegisterType((*AttestationResponse)(nil), "ethereum.beacon.p2p.v1.AttestationResponse")
proto.RegisterType((*FinalizedStateAnnounce)(nil), "ethereum.beacon.p2p.v1.FinalizedStateAnnounce")
proto.RegisterType((*FinalizedStateRequest)(nil), "ethereum.beacon.p2p.v1.FinalizedStateRequest")
proto.RegisterType((*FinalizedStateResponse)(nil), "ethereum.beacon.p2p.v1.FinalizedStateResponse")
proto.RegisterType((*ProposerSlashingAnnounce)(nil), "ethereum.beacon.p2p.v1.ProposerSlashingAnnounce")
proto.RegisterType((*ProposerSlashingRequest)(nil), "ethereum.beacon.p2p.v1.ProposerSlashingRequest")
proto.RegisterType((*ProposerSlashingResponse)(nil), "ethereum.beacon.p2p.v1.ProposerSlashingResponse")
@@ -1728,76 +1624,74 @@ func init() {
func init() { proto.RegisterFile("proto/beacon/p2p/v1/messages.proto", fileDescriptor_a1d590cda035b632) }
var fileDescriptor_a1d590cda035b632 = []byte{
// 1091 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x72, 0xdb, 0x54,
0x14, 0x46, 0x4e, 0xd2, 0xd4, 0xc7, 0x8e, 0xeb, 0xde, 0xa4, 0x89, 0x13, 0x9a, 0x3f, 0x95, 0x0c,
0x81, 0x99, 0xda, 0x6d, 0xba, 0x69, 0x17, 0x0c, 0x23, 0x39, 0x62, 0xdc, 0x34, 0xc8, 0x45, 0xb6,
0x61, 0x58, 0x89, 0x6b, 0xeb, 0x26, 0x36, 0x75, 0x74, 0x85, 0xee, 0x75, 0x26, 0x61, 0xc7, 0x82,
0x67, 0x60, 0xc7, 0x8e, 0x15, 0x2f, 0xc2, 0x92, 0x47, 0x60, 0xf2, 0x24, 0x8c, 0xee, 0xbd, 0x92,
0xe5, 0x9f, 0x28, 0x59, 0xc0, 0xce, 0x3a, 0xe7, 0xfb, 0xbe, 0x73, 0xbe, 0x73, 0x74, 0x34, 0x06,
0x3d, 0x08, 0x29, 0xa7, 0xb5, 0x2e, 0xc1, 0x3d, 0xea, 0xd7, 0x82, 0xa3, 0xa0, 0x76, 0xf9, 0xb2,
0x76, 0x41, 0x18, 0xc3, 0xe7, 0x84, 0x55, 0x45, 0x12, 0xad, 0x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 0x2b, 0x46, 0x7d, 0xa4, 0x33, 0xb1, 0xda, 0xca, 0x34, 0x25, 0x11,
0x2b, 0x99, 0xc5, 0xbf, 0x6e, 0x76, 0xb4, 0xbf, 0x6f, 0x76, 0xb4, 0x7f, 0x6e, 0x76, 0xb4, 0xee,
0x03, 0xf1, 0x1f, 0xfe, 0xd5, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x58, 0x30, 0x51, 0x05, 0xaf,
0x0c, 0x00, 0x00,
// 1068 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x72, 0xe3, 0x44,
0x10, 0x46, 0xf9, 0xd9, 0xc4, 0x6d, 0xc7, 0xeb, 0x9d, 0x84, 0xc4, 0x09, 0x9b, 0x3f, 0x2d, 0x29,
0x02, 0x55, 0x6b, 0xef, 0x66, 0x2f, 0xbb, 0x07, 0x8a, 0x92, 0x1c, 0x51, 0xde, 0xdd, 0x20, 0x2f,
0xb2, 0x0d, 0xc5, 0x49, 0x8c, 0xa5, 0xd9, 0xd8, 0xac, 0xa3, 0x11, 0x9a, 0x71, 0x2a, 0xe1, 0xc6,
0x81, 0x67, 0xe0, 0xc6, 0x8d, 0x13, 0x2f, 0xc2, 0x91, 0x47, 0xa0, 0xf2, 0x24, 0x94, 0x66, 0x46,
0xb2, 0xfc, 0x13, 0x25, 0x07, 0x6e, 0x56, 0xf7, 0xd7, 0x5f, 0xf7, 0xf7, 0xcd, 0xf4, 0x94, 0x41,
0x0f, 0x23, 0xca, 0x69, 0xbd, 0x47, 0xb0, 0x47, 0x83, 0x7a, 0x78, 0x12, 0xd6, 0x2f, 0x9f, 0xd7,
0x2f, 0x08, 0x63, 0xf8, 0x9c, 0xb0, 0x9a, 0x48, 0xa2, 0x4d, 0xc2, 0xfb, 0x24, 0x22, 0xa3, 0x8b,
0x9a, 0x84, 0xd5, 0xc2, 0x93, 0xb0, 0x76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x00, 0x00, 0xff, 0xff, 0x3b, 0x46, 0x10, 0x57, 0xfb, 0x0b, 0x00, 0x00,
}
func (m *Envelope) Marshal() (dAtA []byte, err error) {
@@ -2330,69 +2224,6 @@ func (m *FinalizedStateAnnounce) MarshalTo(dAtA []byte) (int, error) {
return i, nil
}
func (m *FinalizedStateRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *FinalizedStateRequest) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.StateRoot) > 0 {
dAtA[i] = 0xa
i++
i = encodeVarintMessages(dAtA, i, uint64(len(m.StateRoot)))
i += copy(dAtA[i:], m.StateRoot)
}
if m.Slot != 0 {
dAtA[i] = 0x10
i++
i = encodeVarintMessages(dAtA, i, uint64(m.Slot))
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *FinalizedStateResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *FinalizedStateResponse) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.FinalizedState != nil {
dAtA[i] = 0xa
i++
i = encodeVarintMessages(dAtA, i, uint64(m.FinalizedState.Size()))
n6, err := m.FinalizedState.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n6
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *ProposerSlashingAnnounce) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -2472,11 +2303,11 @@ func (m *ProposerSlashingResponse) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x12
i++
i = encodeVarintMessages(dAtA, i, uint64(m.ProposerSlashing.Size()))
n7, err := m.ProposerSlashing.MarshalTo(dAtA[i:])
n6, err := m.ProposerSlashing.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n7
i += n6
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
@@ -2563,11 +2394,11 @@ func (m *AttesterSlashingResponse) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x12
i++
i = encodeVarintMessages(dAtA, i, uint64(m.AttesterSlashing.Size()))
n8, err := m.AttesterSlashing.MarshalTo(dAtA[i:])
n7, err := m.AttesterSlashing.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n8
i += n7
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
@@ -2654,11 +2485,11 @@ func (m *DepositResponse) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x12
i++
i = encodeVarintMessages(dAtA, i, uint64(m.Deposit.Size()))
n9, err := m.Deposit.MarshalTo(dAtA[i:])
n8, err := m.Deposit.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n9
i += n8
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
@@ -2745,11 +2576,11 @@ func (m *ExitResponse) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x12
i++
i = encodeVarintMessages(dAtA, i, uint64(m.VoluntaryExit.Size()))
n10, err := m.VoluntaryExit.MarshalTo(dAtA[i:])
n9, err := m.VoluntaryExit.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n10
i += n9
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
@@ -3097,41 +2928,6 @@ func (m *FinalizedStateAnnounce) Size() (n int) {
return n
}
func (m *FinalizedStateRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.StateRoot)
if l > 0 {
n += 1 + l + sovMessages(uint64(l))
}
if m.Slot != 0 {
n += 1 + sovMessages(uint64(m.Slot))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *FinalizedStateResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.FinalizedState != nil {
l = m.FinalizedState.Size()
n += 1 + l + sovMessages(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *ProposerSlashingAnnounce) Size() (n int) {
if m == nil {
return 0
@@ -5139,203 +4935,6 @@ func (m *FinalizedStateAnnounce) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *FinalizedStateRequest) 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 ErrIntOverflowMessages
}
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: FinalizedStateRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FinalizedStateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field StateRoot", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMessages
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthMessages
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthMessages
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.StateRoot = append(m.StateRoot[:0], dAtA[iNdEx:postIndex]...)
if m.StateRoot == nil {
m.StateRoot = []byte{}
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType)
}
m.Slot = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMessages
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Slot |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipMessages(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMessages
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthMessages
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *FinalizedStateResponse) 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 ErrIntOverflowMessages
}
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: FinalizedStateResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FinalizedStateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field FinalizedState", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMessages
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthMessages
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthMessages
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.FinalizedState == nil {
m.FinalizedState = &BeaconState{}
}
if err := m.FinalizedState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipMessages(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMessages
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthMessages
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ProposerSlashingAnnounce) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0

View File

@@ -99,15 +99,6 @@ message FinalizedStateAnnounce {
uint64 slot = 3;
}
message FinalizedStateRequest {
bytes state_root = 1;
uint64 slot = 2;
}
message FinalizedStateResponse {
BeaconState finalized_state = 1;
}
message ProposerSlashingAnnounce {
bytes hash = 1;
}