|
|
@ -217,7 +217,6 @@ func (*Evidence) XXX_OneofWrappers() []interface{} { |
|
|
|
// EvidenceData contains any evidence of malicious wrong-doing by validators
|
|
|
|
type EvidenceData struct { |
|
|
|
Evidence []Evidence `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence"` |
|
|
|
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *EvidenceData) Reset() { *m = EvidenceData{} } |
|
|
@ -260,13 +259,6 @@ func (m *EvidenceData) GetEvidence() []Evidence { |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *EvidenceData) GetHash() []byte { |
|
|
|
if m != nil { |
|
|
|
return m.Hash |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func init() { |
|
|
|
proto.RegisterType((*DuplicateVoteEvidence)(nil), "tendermint.types.DuplicateVoteEvidence") |
|
|
|
proto.RegisterType((*LightClientAttackEvidence)(nil), "tendermint.types.LightClientAttackEvidence") |
|
|
@ -277,32 +269,32 @@ func init() { |
|
|
|
func init() { proto.RegisterFile("tendermint/types/evidence.proto", fileDescriptor_6825fabc78e0a168) } |
|
|
|
|
|
|
|
var fileDescriptor_6825fabc78e0a168 = []byte{ |
|
|
|
// 398 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xcd, 0x6a, 0xea, 0x40, |
|
|
|
0x14, 0x4e, 0xae, 0x3f, 0xc8, 0xe8, 0x05, 0x6f, 0xb8, 0xb6, 0x2a, 0x12, 0x4b, 0xba, 0xa8, 0x50, |
|
|
|
0x9a, 0x80, 0x5d, 0x74, 0xd3, 0x8d, 0xa9, 0x05, 0x0b, 0xdd, 0x34, 0x8b, 0x2e, 0xba, 0x49, 0x27, |
|
|
|
0x93, 0x69, 0x32, 0x98, 0xcc, 0x88, 0x4e, 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// 388 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xc1, 0x6a, 0xea, 0x40, |
|
|
|
0x14, 0x4d, 0x9e, 0x4f, 0x91, 0xd1, 0x07, 0xbe, 0xf0, 0x7c, 0x55, 0x91, 0x58, 0xd2, 0x45, 0x85, |
|
|
|
0xd2, 0x04, 0xec, 0xa2, 0x9b, 0x6e, 0x4c, 0x2d, 0x58, 0x70, 0xd3, 0x2c, 0xba, 0xe8, 0x26, 0x24, |
|
|
|
0x93, 0x69, 0x1c, 0x4c, 0x66, 0x44, 0x6f, 0x84, 0x7e, 0x43, 0x37, 0xfd, 0x2c, 0x97, 0x2e, 0xbb, |
|
|
|
0x2a, 0x45, 0xfb, 0x21, 0x25, 0x13, 0x8d, 0x62, 0x94, 0x6e, 0x86, 0xe1, 0xdc, 0x73, 0xef, 0xb9, |
|
|
|
0xe7, 0x70, 0x51, 0x0b, 0x08, 0xf3, 0xc8, 0x24, 0xa4, 0x0c, 0x0c, 0x78, 0x19, 0x93, 0xa9, 0x41, |
|
|
|
0x66, 0xd4, 0x23, 0x0c, 0x13, 0x7d, 0x3c, 0xe1, 0xc0, 0x95, 0xca, 0x96, 0xa0, 0x0b, 0x42, 0xe3, |
|
|
|
0x9f, 0xcf, 0x7d, 0x2e, 0x8a, 0x46, 0xfc, 0x4b, 0x78, 0x8d, 0x66, 0x66, 0x90, 0x78, 0x93, 0xaa, |
|
|
|
0x16, 0xa1, 0x6a, 0x2f, 0x1a, 0x07, 0x14, 0x3b, 0x40, 0x1e, 0x39, 0x90, 0xbb, 0xb5, 0x88, 0x72, |
|
|
|
0x89, 0x0a, 0x33, 0x0e, 0xc4, 0x76, 0x6a, 0xf2, 0xa9, 0xdc, 0x2e, 0x75, 0xfe, 0xeb, 0xfb, 0x7a, |
|
|
|
0x7a, 0xcc, 0xb7, 0xf2, 0x31, 0xab, 0x9b, 0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 0xf9, 0x73, 0xa9, 0xca, 0x6f, 0x2b, 0x55, 0x5a, 0xac, 0x54, 0xe9, 0x7d, 0xa5, 0x4a, 0x4f, |
|
|
|
0xd7, 0x3e, 0x85, 0x61, 0xe4, 0xea, 0x98, 0x87, 0xc6, 0xee, 0xf1, 0x6d, 0xbf, 0xc9, 0x91, 0xee, |
|
|
|
0x1f, 0xa6, 0x5b, 0x10, 0xf8, 0xd5, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x7f, 0xe9, 0x7a, |
|
|
|
0xfc, 0x02, 0x00, 0x00, |
|
|
|
} |
|
|
|
|
|
|
|
func (m *DuplicateVoteEvidence) Marshal() (dAtA []byte, err error) { |
|
|
@ -486,13 +478,6 @@ func (m *EvidenceData) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
_ = i |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
if len(m.Hash) > 0 { |
|
|
|
i -= len(m.Hash) |
|
|
|
copy(dAtA[i:], m.Hash) |
|
|
|
i = encodeVarintEvidence(dAtA, i, uint64(len(m.Hash))) |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x12 |
|
|
|
} |
|
|
|
if len(m.Evidence) > 0 { |
|
|
|
for iNdEx := len(m.Evidence) - 1; iNdEx >= 0; iNdEx-- { |
|
|
|
{ |
|
|
@ -602,10 +587,6 @@ func (m *EvidenceData) Size() (n int) { |
|
|
|
n += 1 + l + sovEvidence(uint64(l)) |
|
|
|
} |
|
|
|
} |
|
|
|
l = len(m.Hash) |
|
|
|
if l > 0 { |
|
|
|
n += 1 + l + sovEvidence(uint64(l)) |
|
|
|
} |
|
|
|
return n |
|
|
|
} |
|
|
|
|
|
|
@ -1034,40 +1015,6 @@ func (m *EvidenceData) Unmarshal(dAtA []byte) error { |
|
|
|
return err |
|
|
|
} |
|
|
|
iNdEx = postIndex |
|
|
|
case 2: |
|
|
|
if wireType != 2 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) |
|
|
|
} |
|
|
|
var byteLen int |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowEvidence |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
byteLen |= int(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
if byteLen < 0 { |
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
} |
|
|
|
postIndex := iNdEx + byteLen |
|
|
|
if postIndex < 0 { |
|
|
|
return ErrInvalidLengthEvidence |
|
|
|
} |
|
|
|
if postIndex > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) |
|
|
|
if m.Hash == nil { |
|
|
|
m.Hash = []byte{} |
|
|
|
} |
|
|
|
iNdEx = postIndex |
|
|
|
default: |
|
|
|
iNdEx = preIndex |
|
|
|
skippy, err := skipEvidence(dAtA[iNdEx:]) |
|
|
|