|
@ -210,78 +210,9 @@ func (m *AmnesiaEvidence) GetPolc() *ProofOfLockChange { |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type LunaticValidatorEvidence struct { |
|
|
|
|
|
Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
|
|
|
|
|
Vote *Vote `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` |
|
|
|
|
|
InvalidHeaderField string `protobuf:"bytes,3,opt,name=invalid_header_field,json=invalidHeaderField,proto3" json:"invalid_header_field,omitempty"` |
|
|
|
|
|
Timestamp time.Time `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *LunaticValidatorEvidence) Reset() { *m = LunaticValidatorEvidence{} } |
|
|
|
|
|
func (m *LunaticValidatorEvidence) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*LunaticValidatorEvidence) ProtoMessage() {} |
|
|
|
|
|
func (*LunaticValidatorEvidence) Descriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_6825fabc78e0a168, []int{3} |
|
|
|
|
|
} |
|
|
|
|
|
func (m *LunaticValidatorEvidence) XXX_Unmarshal(b []byte) error { |
|
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *LunaticValidatorEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
|
if deterministic { |
|
|
|
|
|
return xxx_messageInfo_LunaticValidatorEvidence.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 *LunaticValidatorEvidence) XXX_Merge(src proto.Message) { |
|
|
|
|
|
xxx_messageInfo_LunaticValidatorEvidence.Merge(m, src) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *LunaticValidatorEvidence) XXX_Size() int { |
|
|
|
|
|
return m.Size() |
|
|
|
|
|
} |
|
|
|
|
|
func (m *LunaticValidatorEvidence) XXX_DiscardUnknown() { |
|
|
|
|
|
xxx_messageInfo_LunaticValidatorEvidence.DiscardUnknown(m) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_LunaticValidatorEvidence proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
|
|
|
func (m *LunaticValidatorEvidence) GetHeader() *Header { |
|
|
|
|
|
if m != nil { |
|
|
|
|
|
return m.Header |
|
|
|
|
|
} |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *LunaticValidatorEvidence) GetVote() *Vote { |
|
|
|
|
|
if m != nil { |
|
|
|
|
|
return m.Vote |
|
|
|
|
|
} |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *LunaticValidatorEvidence) GetInvalidHeaderField() string { |
|
|
|
|
|
if m != nil { |
|
|
|
|
|
return m.InvalidHeaderField |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *LunaticValidatorEvidence) GetTimestamp() time.Time { |
|
|
|
|
|
if m != nil { |
|
|
|
|
|
return m.Timestamp |
|
|
|
|
|
} |
|
|
|
|
|
return time.Time{} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type Evidence struct { |
|
|
type Evidence struct { |
|
|
// Types that are valid to be assigned to Sum:
|
|
|
// Types that are valid to be assigned to Sum:
|
|
|
// *Evidence_DuplicateVoteEvidence
|
|
|
// *Evidence_DuplicateVoteEvidence
|
|
|
// *Evidence_LunaticValidatorEvidence
|
|
|
|
|
|
// *Evidence_PotentialAmnesiaEvidence
|
|
|
// *Evidence_PotentialAmnesiaEvidence
|
|
|
// *Evidence_AmnesiaEvidence
|
|
|
// *Evidence_AmnesiaEvidence
|
|
|
Sum isEvidence_Sum `protobuf_oneof:"sum"` |
|
|
Sum isEvidence_Sum `protobuf_oneof:"sum"` |
|
@ -291,7 +222,7 @@ func (m *Evidence) Reset() { *m = Evidence{} } |
|
|
func (m *Evidence) String() string { return proto.CompactTextString(m) } |
|
|
func (m *Evidence) String() string { return proto.CompactTextString(m) } |
|
|
func (*Evidence) ProtoMessage() {} |
|
|
func (*Evidence) ProtoMessage() {} |
|
|
func (*Evidence) Descriptor() ([]byte, []int) { |
|
|
func (*Evidence) Descriptor() ([]byte, []int) { |
|
|
return fileDescriptor_6825fabc78e0a168, []int{4} |
|
|
|
|
|
|
|
|
return fileDescriptor_6825fabc78e0a168, []int{3} |
|
|
} |
|
|
} |
|
|
func (m *Evidence) XXX_Unmarshal(b []byte) error { |
|
|
func (m *Evidence) XXX_Unmarshal(b []byte) error { |
|
|
return m.Unmarshal(b) |
|
|
return m.Unmarshal(b) |
|
@ -329,18 +260,14 @@ type isEvidence_Sum interface { |
|
|
type Evidence_DuplicateVoteEvidence struct { |
|
|
type Evidence_DuplicateVoteEvidence struct { |
|
|
DuplicateVoteEvidence *DuplicateVoteEvidence `protobuf:"bytes,1,opt,name=duplicate_vote_evidence,json=duplicateVoteEvidence,proto3,oneof" json:"duplicate_vote_evidence,omitempty"` |
|
|
DuplicateVoteEvidence *DuplicateVoteEvidence `protobuf:"bytes,1,opt,name=duplicate_vote_evidence,json=duplicateVoteEvidence,proto3,oneof" json:"duplicate_vote_evidence,omitempty"` |
|
|
} |
|
|
} |
|
|
type Evidence_LunaticValidatorEvidence struct { |
|
|
|
|
|
LunaticValidatorEvidence *LunaticValidatorEvidence `protobuf:"bytes,3,opt,name=lunatic_validator_evidence,json=lunaticValidatorEvidence,proto3,oneof" json:"lunatic_validator_evidence,omitempty"` |
|
|
|
|
|
} |
|
|
|
|
|
type Evidence_PotentialAmnesiaEvidence struct { |
|
|
type Evidence_PotentialAmnesiaEvidence struct { |
|
|
PotentialAmnesiaEvidence *PotentialAmnesiaEvidence `protobuf:"bytes,4,opt,name=potential_amnesia_evidence,json=potentialAmnesiaEvidence,proto3,oneof" json:"potential_amnesia_evidence,omitempty"` |
|
|
|
|
|
|
|
|
PotentialAmnesiaEvidence *PotentialAmnesiaEvidence `protobuf:"bytes,2,opt,name=potential_amnesia_evidence,json=potentialAmnesiaEvidence,proto3,oneof" json:"potential_amnesia_evidence,omitempty"` |
|
|
} |
|
|
} |
|
|
type Evidence_AmnesiaEvidence struct { |
|
|
type Evidence_AmnesiaEvidence struct { |
|
|
AmnesiaEvidence *AmnesiaEvidence `protobuf:"bytes,5,opt,name=amnesia_evidence,json=amnesiaEvidence,proto3,oneof" json:"amnesia_evidence,omitempty"` |
|
|
|
|
|
|
|
|
AmnesiaEvidence *AmnesiaEvidence `protobuf:"bytes,3,opt,name=amnesia_evidence,json=amnesiaEvidence,proto3,oneof" json:"amnesia_evidence,omitempty"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (*Evidence_DuplicateVoteEvidence) isEvidence_Sum() {} |
|
|
func (*Evidence_DuplicateVoteEvidence) isEvidence_Sum() {} |
|
|
func (*Evidence_LunaticValidatorEvidence) isEvidence_Sum() {} |
|
|
|
|
|
func (*Evidence_PotentialAmnesiaEvidence) isEvidence_Sum() {} |
|
|
func (*Evidence_PotentialAmnesiaEvidence) isEvidence_Sum() {} |
|
|
func (*Evidence_AmnesiaEvidence) isEvidence_Sum() {} |
|
|
func (*Evidence_AmnesiaEvidence) isEvidence_Sum() {} |
|
|
|
|
|
|
|
@ -358,13 +285,6 @@ func (m *Evidence) GetDuplicateVoteEvidence() *DuplicateVoteEvidence { |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *Evidence) GetLunaticValidatorEvidence() *LunaticValidatorEvidence { |
|
|
|
|
|
if x, ok := m.GetSum().(*Evidence_LunaticValidatorEvidence); ok { |
|
|
|
|
|
return x.LunaticValidatorEvidence |
|
|
|
|
|
} |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Evidence) GetPotentialAmnesiaEvidence() *PotentialAmnesiaEvidence { |
|
|
func (m *Evidence) GetPotentialAmnesiaEvidence() *PotentialAmnesiaEvidence { |
|
|
if x, ok := m.GetSum().(*Evidence_PotentialAmnesiaEvidence); ok { |
|
|
if x, ok := m.GetSum().(*Evidence_PotentialAmnesiaEvidence); ok { |
|
|
return x.PotentialAmnesiaEvidence |
|
|
return x.PotentialAmnesiaEvidence |
|
@ -383,7 +303,6 @@ func (m *Evidence) GetAmnesiaEvidence() *AmnesiaEvidence { |
|
|
func (*Evidence) XXX_OneofWrappers() []interface{} { |
|
|
func (*Evidence) XXX_OneofWrappers() []interface{} { |
|
|
return []interface{}{ |
|
|
return []interface{}{ |
|
|
(*Evidence_DuplicateVoteEvidence)(nil), |
|
|
(*Evidence_DuplicateVoteEvidence)(nil), |
|
|
(*Evidence_LunaticValidatorEvidence)(nil), |
|
|
|
|
|
(*Evidence_PotentialAmnesiaEvidence)(nil), |
|
|
(*Evidence_PotentialAmnesiaEvidence)(nil), |
|
|
(*Evidence_AmnesiaEvidence)(nil), |
|
|
(*Evidence_AmnesiaEvidence)(nil), |
|
|
} |
|
|
} |
|
@ -399,7 +318,7 @@ func (m *EvidenceData) Reset() { *m = EvidenceData{} } |
|
|
func (m *EvidenceData) String() string { return proto.CompactTextString(m) } |
|
|
func (m *EvidenceData) String() string { return proto.CompactTextString(m) } |
|
|
func (*EvidenceData) ProtoMessage() {} |
|
|
func (*EvidenceData) ProtoMessage() {} |
|
|
func (*EvidenceData) Descriptor() ([]byte, []int) { |
|
|
func (*EvidenceData) Descriptor() ([]byte, []int) { |
|
|
return fileDescriptor_6825fabc78e0a168, []int{5} |
|
|
|
|
|
|
|
|
return fileDescriptor_6825fabc78e0a168, []int{4} |
|
|
} |
|
|
} |
|
|
func (m *EvidenceData) XXX_Unmarshal(b []byte) error { |
|
|
func (m *EvidenceData) XXX_Unmarshal(b []byte) error { |
|
|
return m.Unmarshal(b) |
|
|
return m.Unmarshal(b) |
|
@ -451,7 +370,7 @@ func (m *ProofOfLockChange) Reset() { *m = ProofOfLockChange{} } |
|
|
func (m *ProofOfLockChange) String() string { return proto.CompactTextString(m) } |
|
|
func (m *ProofOfLockChange) String() string { return proto.CompactTextString(m) } |
|
|
func (*ProofOfLockChange) ProtoMessage() {} |
|
|
func (*ProofOfLockChange) ProtoMessage() {} |
|
|
func (*ProofOfLockChange) Descriptor() ([]byte, []int) { |
|
|
func (*ProofOfLockChange) Descriptor() ([]byte, []int) { |
|
|
return fileDescriptor_6825fabc78e0a168, []int{6} |
|
|
|
|
|
|
|
|
return fileDescriptor_6825fabc78e0a168, []int{5} |
|
|
} |
|
|
} |
|
|
func (m *ProofOfLockChange) XXX_Unmarshal(b []byte) error { |
|
|
func (m *ProofOfLockChange) XXX_Unmarshal(b []byte) error { |
|
|
return m.Unmarshal(b) |
|
|
return m.Unmarshal(b) |
|
@ -498,7 +417,6 @@ func init() { |
|
|
proto.RegisterType((*DuplicateVoteEvidence)(nil), "tendermint.types.DuplicateVoteEvidence") |
|
|
proto.RegisterType((*DuplicateVoteEvidence)(nil), "tendermint.types.DuplicateVoteEvidence") |
|
|
proto.RegisterType((*PotentialAmnesiaEvidence)(nil), "tendermint.types.PotentialAmnesiaEvidence") |
|
|
proto.RegisterType((*PotentialAmnesiaEvidence)(nil), "tendermint.types.PotentialAmnesiaEvidence") |
|
|
proto.RegisterType((*AmnesiaEvidence)(nil), "tendermint.types.AmnesiaEvidence") |
|
|
proto.RegisterType((*AmnesiaEvidence)(nil), "tendermint.types.AmnesiaEvidence") |
|
|
proto.RegisterType((*LunaticValidatorEvidence)(nil), "tendermint.types.LunaticValidatorEvidence") |
|
|
|
|
|
proto.RegisterType((*Evidence)(nil), "tendermint.types.Evidence") |
|
|
proto.RegisterType((*Evidence)(nil), "tendermint.types.Evidence") |
|
|
proto.RegisterType((*EvidenceData)(nil), "tendermint.types.EvidenceData") |
|
|
proto.RegisterType((*EvidenceData)(nil), "tendermint.types.EvidenceData") |
|
|
proto.RegisterType((*ProofOfLockChange)(nil), "tendermint.types.ProofOfLockChange") |
|
|
proto.RegisterType((*ProofOfLockChange)(nil), "tendermint.types.ProofOfLockChange") |
|
@ -507,48 +425,41 @@ func init() { |
|
|
func init() { proto.RegisterFile("tendermint/types/evidence.proto", fileDescriptor_6825fabc78e0a168) } |
|
|
func init() { proto.RegisterFile("tendermint/types/evidence.proto", fileDescriptor_6825fabc78e0a168) } |
|
|
|
|
|
|
|
|
var fileDescriptor_6825fabc78e0a168 = []byte{ |
|
|
var fileDescriptor_6825fabc78e0a168 = []byte{ |
|
|
// 641 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4f, 0x4f, 0xd4, 0x40, |
|
|
|
|
|
0x14, 0xdf, 0xba, 0xcb, 0x0a, 0x0f, 0x12, 0xb0, 0x01, 0x6d, 0x36, 0x64, 0x57, 0xd6, 0x83, 0x86, |
|
|
|
|
|
0x68, 0x4b, 0x34, 0x86, 0x8b, 0x17, 0x56, 0x34, 0x24, 0x10, 0xc5, 0xd1, 0x70, 0xf0, 0x52, 0xa7, |
|
|
|
|
|
0xed, 0x6c, 0x3b, 0xd0, 0x76, 0x9a, 0x76, 0xba, 0xb1, 0xdf, 0x82, 0x0f, 0xe0, 0xc7, 0xf0, 0xe2, |
|
|
|
|
|
0x37, 0xe0, 0xc8, 0xd1, 0x93, 0x18, 0xb8, 0xfb, 0x19, 0x4c, 0xa7, 0x7f, 0x16, 0xb6, 0x5b, 0x88, |
|
|
|
|
|
0xc6, 0x78, 0xd9, 0x74, 0xdf, 0xfb, 0xbd, 0x3f, 0xb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x92, 0xc1, 0xbb, 0x93, 0xf3, 0xae, 0x74, 0x7a, 0xde, 0x95, 0x7e, 0x9e, 0x77, 0xa5, |
|
|
|
|
|
0xe3, 0x8b, 0x6e, 0xe3, 0xf4, 0xa2, 0xdb, 0xf8, 0x7e, 0xd1, 0x6d, 0x7c, 0xdc, 0xb4, 0x29, 0x77, |
|
|
|
|
|
0x62, 0x43, 0x35, 0x99, 0xa7, 0x5d, 0x7e, 0x21, 0xc6, 0x9f, 0xd9, 0x53, 0x33, 0xf9, 0x7a, 0x18, |
|
|
|
|
|
0x6d, 0x61, 0x7f, 0xf6, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x2a, 0xcf, 0x0c, 0xc2, 0x06, 0x00, |
|
|
|
|
|
0x00, |
|
|
|
|
|
|
|
|
// 539 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xcb, 0x6e, 0xd3, 0x40, |
|
|
|
|
|
0x14, 0xb5, 0x93, 0x34, 0x84, 0x69, 0xa4, 0x16, 0x8b, 0x82, 0x15, 0x55, 0x0e, 0x35, 0x0b, 0x10, |
|
|
|
|
|
0x02, 0x5b, 0x02, 0xa1, 0x6e, 0xd8, 0xd4, 0x14, 0xa9, 0x52, 0x11, 0x14, 0x83, 0x58, 0xb0, 0x31, |
|
|
|
|
|
0x63, 0xe7, 0xc6, 0x36, 0xb1, 0x3d, 0xa3, 0x78, 0x5c, 0xe1, 0xbf, 0xe8, 0xa7, 0xb0, 0x60, 0xc3, |
|
|
|
|
|
0x1f, 0x74, 0xd9, 0x25, 0x2b, 0x8a, 0x92, 0x1f, 0x41, 0x1e, 0x3f, 0x92, 0xc6, 0x49, 0x10, 0x2c, |
|
|
|
|
|
0xba, 0x89, 0x26, 0xf7, 0x9e, 0xfb, 0x38, 0xc7, 0x47, 0x17, 0xf5, 0x19, 0x44, 0x03, 0x18, 0x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d4, 0xf2, 0x70, 0xec, 0x71, 0xea, 0x5d, 0x93, |
|
|
|
|
|
0xbf, 0xd5, 0xaf, 0xe8, 0x56, 0xed, 0x7b, 0x49, 0x8f, 0x11, 0x37, 0x74, 0x5c, 0xcc, 0x58, 0xeb, |
|
|
|
|
|
0xfa, 0x58, 0x7a, 0x8e, 0x6e, 0xd0, 0xc4, 0xb6, 0x46, 0x90, 0x16, 0xa2, 0xee, 0xce, 0xe3, 0xf3, |
|
|
|
|
|
0xe3, 0xa2, 0x9d, 0x24, 0x76, 0xe0, 0x3b, 0xc7, 0x90, 0x9a, 0x6d, 0x9a, 0xd8, 0xc7, 0x90, 0x1a, |
|
|
|
|
|
0xef, 0xce, 0x27, 0x8a, 0x78, 0x31, 0x51, 0xc4, 0xdf, 0x13, 0x45, 0x3c, 0x9b, 0x2a, 0xc2, 0xc5, |
|
|
|
|
|
0x54, 0x11, 0x7e, 0x4e, 0x15, 0xe1, 0xd3, 0xbe, 0xeb, 0x33, 0x2f, 0xb1, 0x35, 0x87, 0x84, 0xfa, |
|
|
|
|
|
0xfc, 0x11, 0x9b, 0x3d, 0xf3, 0x6b, 0xb8, 0x78, 0xe0, 0xec, 0x36, 0x8f, 0x3f, 0xfb, 0x13, 0x00, |
|
|
|
|
|
0x00, 0xff, 0xff, 0x20, 0x49, 0xd9, 0x02, 0x65, 0x05, 0x00, 0x00, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *DuplicateVoteEvidence) Marshal() (dAtA []byte, err error) { |
|
|
func (m *DuplicateVoteEvidence) Marshal() (dAtA []byte, err error) { |
|
@ -713,68 +624,6 @@ func (m *AmnesiaEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
return len(dAtA) - i, nil |
|
|
return len(dAtA) - i, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *LunaticValidatorEvidence) 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 *LunaticValidatorEvidence) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
|
size := m.Size() |
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *LunaticValidatorEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
|
|
i := len(dAtA) |
|
|
|
|
|
_ = i |
|
|
|
|
|
var l int |
|
|
|
|
|
_ = l |
|
|
|
|
|
n9, err9 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp):]) |
|
|
|
|
|
if err9 != nil { |
|
|
|
|
|
return 0, err9 |
|
|
|
|
|
} |
|
|
|
|
|
i -= n9 |
|
|
|
|
|
i = encodeVarintEvidence(dAtA, i, uint64(n9)) |
|
|
|
|
|
i-- |
|
|
|
|
|
dAtA[i] = 0x22 |
|
|
|
|
|
if len(m.InvalidHeaderField) > 0 { |
|
|
|
|
|
i -= len(m.InvalidHeaderField) |
|
|
|
|
|
copy(dAtA[i:], m.InvalidHeaderField) |
|
|
|
|
|
i = encodeVarintEvidence(dAtA, i, uint64(len(m.InvalidHeaderField))) |
|
|
|
|
|
i-- |
|
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
|
} |
|
|
|
|
|
if m.Vote != nil { |
|
|
|
|
|
{ |
|
|
|
|
|
size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return 0, err |
|
|
|
|
|
} |
|
|
|
|
|
i -= size |
|
|
|
|
|
i = encodeVarintEvidence(dAtA, i, uint64(size)) |
|
|
|
|
|
} |
|
|
|
|
|
i-- |
|
|
|
|
|
dAtA[i] = 0x12 |
|
|
|
|
|
} |
|
|
|
|
|
if m.Header != nil { |
|
|
|
|
|
{ |
|
|
|
|
|
size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return 0, err |
|
|
|
|
|
} |
|
|
|
|
|
i -= size |
|
|
|
|
|
i = encodeVarintEvidence(dAtA, i, uint64(size)) |
|
|
|
|
|
} |
|
|
|
|
|
i-- |
|
|
|
|
|
dAtA[i] = 0xa |
|
|
|
|
|
} |
|
|
|
|
|
return len(dAtA) - i, nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Evidence) Marshal() (dAtA []byte, err error) { |
|
|
func (m *Evidence) Marshal() (dAtA []byte, err error) { |
|
|
size := m.Size() |
|
|
size := m.Size() |
|
|
dAtA = make([]byte, size) |
|
|
dAtA = make([]byte, size) |
|
@ -828,27 +677,6 @@ func (m *Evidence_DuplicateVoteEvidence) MarshalToSizedBuffer(dAtA []byte) (int, |
|
|
} |
|
|
} |
|
|
return len(dAtA) - i, nil |
|
|
return len(dAtA) - i, nil |
|
|
} |
|
|
} |
|
|
func (m *Evidence_LunaticValidatorEvidence) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
|
size := m.Size() |
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Evidence_LunaticValidatorEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
|
|
i := len(dAtA) |
|
|
|
|
|
if m.LunaticValidatorEvidence != nil { |
|
|
|
|
|
{ |
|
|
|
|
|
size, err := m.LunaticValidatorEvidence.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return 0, err |
|
|
|
|
|
} |
|
|
|
|
|
i -= size |
|
|
|
|
|
i = encodeVarintEvidence(dAtA, i, uint64(size)) |
|
|
|
|
|
} |
|
|
|
|
|
i-- |
|
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
|
} |
|
|
|
|
|
return len(dAtA) - i, nil |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Evidence_PotentialAmnesiaEvidence) MarshalTo(dAtA []byte) (int, error) { |
|
|
func (m *Evidence_PotentialAmnesiaEvidence) MarshalTo(dAtA []byte) (int, error) { |
|
|
size := m.Size() |
|
|
size := m.Size() |
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
@ -866,7 +694,7 @@ func (m *Evidence_PotentialAmnesiaEvidence) MarshalToSizedBuffer(dAtA []byte) (i |
|
|
i = encodeVarintEvidence(dAtA, i, uint64(size)) |
|
|
i = encodeVarintEvidence(dAtA, i, uint64(size)) |
|
|
} |
|
|
} |
|
|
i-- |
|
|
i-- |
|
|
dAtA[i] = 0x22 |
|
|
|
|
|
|
|
|
dAtA[i] = 0x12 |
|
|
} |
|
|
} |
|
|
return len(dAtA) - i, nil |
|
|
return len(dAtA) - i, nil |
|
|
} |
|
|
} |
|
@ -887,7 +715,7 @@ func (m *Evidence_AmnesiaEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error |
|
|
i = encodeVarintEvidence(dAtA, i, uint64(size)) |
|
|
i = encodeVarintEvidence(dAtA, i, uint64(size)) |
|
|
} |
|
|
} |
|
|
i-- |
|
|
i-- |
|
|
dAtA[i] = 0x2a |
|
|
|
|
|
|
|
|
dAtA[i] = 0x1a |
|
|
} |
|
|
} |
|
|
return len(dAtA) - i, nil |
|
|
return len(dAtA) - i, nil |
|
|
} |
|
|
} |
|
@ -1053,29 +881,6 @@ func (m *AmnesiaEvidence) Size() (n int) { |
|
|
return n |
|
|
return n |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *LunaticValidatorEvidence) Size() (n int) { |
|
|
|
|
|
if m == nil { |
|
|
|
|
|
return 0 |
|
|
|
|
|
} |
|
|
|
|
|
var l int |
|
|
|
|
|
_ = l |
|
|
|
|
|
if m.Header != nil { |
|
|
|
|
|
l = m.Header.Size() |
|
|
|
|
|
n += 1 + l + sovEvidence(uint64(l)) |
|
|
|
|
|
} |
|
|
|
|
|
if m.Vote != nil { |
|
|
|
|
|
l = m.Vote.Size() |
|
|
|
|
|
n += 1 + l + sovEvidence(uint64(l)) |
|
|
|
|
|
} |
|
|
|
|
|
l = len(m.InvalidHeaderField) |
|
|
|
|
|
if l > 0 { |
|
|
|
|
|
n += 1 + l + sovEvidence(uint64(l)) |
|
|
|
|
|
} |
|
|
|
|
|
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp) |
|
|
|
|
|
n += 1 + l + sovEvidence(uint64(l)) |
|
|
|
|
|
return n |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Evidence) Size() (n int) { |
|
|
func (m *Evidence) Size() (n int) { |
|
|
if m == nil { |
|
|
if m == nil { |
|
|
return 0 |
|
|
return 0 |
|
@ -1100,18 +905,6 @@ func (m *Evidence_DuplicateVoteEvidence) Size() (n int) { |
|
|
} |
|
|
} |
|
|
return n |
|
|
return n |
|
|
} |
|
|
} |
|
|
func (m *Evidence_LunaticValidatorEvidence) Size() (n int) { |
|
|
|
|
|
if m == nil { |
|
|
|
|
|
return 0 |
|
|
|
|
|
} |
|
|
|
|
|
var l int |
|
|
|
|
|
_ = l |
|
|
|
|
|
if m.LunaticValidatorEvidence != nil { |
|
|
|
|
|
l = m.LunaticValidatorEvidence.Size() |
|
|
|
|
|
n += 1 + l + sovEvidence(uint64(l)) |
|
|
|
|
|
} |
|
|
|
|
|
return n |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Evidence_PotentialAmnesiaEvidence) Size() (n int) { |
|
|
func (m *Evidence_PotentialAmnesiaEvidence) Size() (n int) { |
|
|
if m == nil { |
|
|
if m == nil { |
|
|
return 0 |
|
|
return 0 |
|
@ -1640,196 +1433,6 @@ func (m *AmnesiaEvidence) Unmarshal(dAtA []byte) error { |
|
|
} |
|
|
} |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
func (m *LunaticValidatorEvidence) 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 ErrIntOverflowEvidence |
|
|
|
|
|
} |
|
|
|
|
|
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: LunaticValidatorEvidence: wiretype end group for non-group") |
|
|
|
|
|
} |
|
|
|
|
|
if fieldNum <= 0 { |
|
|
|
|
|
return fmt.Errorf("proto: LunaticValidatorEvidence: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
|
|
} |
|
|
|
|
|
switch fieldNum { |
|
|
|
|
|
case 1: |
|
|
|
|
|
if wireType != 2 { |
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
|
|
|
|
|
} |
|
|
|
|
|
var msglen int |
|
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
|
if shift >= 64 { |
|
|
|
|
|
return ErrIntOverflowEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if iNdEx >= l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
|
iNdEx++ |
|
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
|
if b < 0x80 { |
|
|
|
|
|
break |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if msglen < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
|
if postIndex < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if postIndex > l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
if m.Header == nil { |
|
|
|
|
|
m.Header = &Header{} |
|
|
|
|
|
} |
|
|
|
|
|
if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
iNdEx = postIndex |
|
|
|
|
|
case 2: |
|
|
|
|
|
if wireType != 2 { |
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) |
|
|
|
|
|
} |
|
|
|
|
|
var msglen int |
|
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
|
if shift >= 64 { |
|
|
|
|
|
return ErrIntOverflowEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if iNdEx >= l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
|
iNdEx++ |
|
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
|
if b < 0x80 { |
|
|
|
|
|
break |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if msglen < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
|
if postIndex < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if postIndex > l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
if m.Vote == nil { |
|
|
|
|
|
m.Vote = &Vote{} |
|
|
|
|
|
} |
|
|
|
|
|
if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
iNdEx = postIndex |
|
|
|
|
|
case 3: |
|
|
|
|
|
if wireType != 2 { |
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field InvalidHeaderField", wireType) |
|
|
|
|
|
} |
|
|
|
|
|
var stringLen uint64 |
|
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
|
if shift >= 64 { |
|
|
|
|
|
return ErrIntOverflowEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if iNdEx >= l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
|
iNdEx++ |
|
|
|
|
|
stringLen |= uint64(b&0x7F) << shift |
|
|
|
|
|
if b < 0x80 { |
|
|
|
|
|
break |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
intStringLen := int(stringLen) |
|
|
|
|
|
if intStringLen < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
postIndex := iNdEx + intStringLen |
|
|
|
|
|
if postIndex < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if postIndex > l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
m.InvalidHeaderField = string(dAtA[iNdEx:postIndex]) |
|
|
|
|
|
iNdEx = postIndex |
|
|
|
|
|
case 4: |
|
|
|
|
|
if wireType != 2 { |
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) |
|
|
|
|
|
} |
|
|
|
|
|
var msglen int |
|
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
|
if shift >= 64 { |
|
|
|
|
|
return ErrIntOverflowEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if iNdEx >= l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
|
iNdEx++ |
|
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
|
if b < 0x80 { |
|
|
|
|
|
break |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if msglen < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
|
if postIndex < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if postIndex > l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
iNdEx = postIndex |
|
|
|
|
|
default: |
|
|
|
|
|
iNdEx = preIndex |
|
|
|
|
|
skippy, err := skipEvidence(dAtA[iNdEx:]) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
if skippy < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if (iNdEx + skippy) < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
iNdEx += skippy |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Evidence) Unmarshal(dAtA []byte) error { |
|
|
func (m *Evidence) Unmarshal(dAtA []byte) error { |
|
|
l := len(dAtA) |
|
|
l := len(dAtA) |
|
|
iNdEx := 0 |
|
|
iNdEx := 0 |
|
@ -1894,42 +1497,7 @@ func (m *Evidence) Unmarshal(dAtA []byte) error { |
|
|
} |
|
|
} |
|
|
m.Sum = &Evidence_DuplicateVoteEvidence{v} |
|
|
m.Sum = &Evidence_DuplicateVoteEvidence{v} |
|
|
iNdEx = postIndex |
|
|
iNdEx = postIndex |
|
|
case 3: |
|
|
|
|
|
if wireType != 2 { |
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LunaticValidatorEvidence", wireType) |
|
|
|
|
|
} |
|
|
|
|
|
var msglen int |
|
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
|
if shift >= 64 { |
|
|
|
|
|
return ErrIntOverflowEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if iNdEx >= l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
|
iNdEx++ |
|
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
|
if b < 0x80 { |
|
|
|
|
|
break |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if msglen < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
|
if postIndex < 0 { |
|
|
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
|
|
} |
|
|
|
|
|
if postIndex > l { |
|
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
|
} |
|
|
|
|
|
v := &LunaticValidatorEvidence{} |
|
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
m.Sum = &Evidence_LunaticValidatorEvidence{v} |
|
|
|
|
|
iNdEx = postIndex |
|
|
|
|
|
case 4: |
|
|
|
|
|
|
|
|
case 2: |
|
|
if wireType != 2 { |
|
|
if wireType != 2 { |
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PotentialAmnesiaEvidence", wireType) |
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PotentialAmnesiaEvidence", wireType) |
|
|
} |
|
|
} |
|
@ -1964,7 +1532,7 @@ func (m *Evidence) Unmarshal(dAtA []byte) error { |
|
|
} |
|
|
} |
|
|
m.Sum = &Evidence_PotentialAmnesiaEvidence{v} |
|
|
m.Sum = &Evidence_PotentialAmnesiaEvidence{v} |
|
|
iNdEx = postIndex |
|
|
iNdEx = postIndex |
|
|
case 5: |
|
|
|
|
|
|
|
|
case 3: |
|
|
if wireType != 2 { |
|
|
if wireType != 2 { |
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AmnesiaEvidence", wireType) |
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AmnesiaEvidence", wireType) |
|
|
} |
|
|
} |
|
|