You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

291 lines
11 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/types/evidence.proto
  3. package types
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. _ "github.com/golang/protobuf/ptypes/timestamp"
  9. math "math"
  10. time "time"
  11. )
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. var _ = time.Kitchen
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  22. // DuplicateVoteEvidence contains evidence a validator signed two conflicting
  23. // votes.
  24. type DuplicateVoteEvidence struct {
  25. VoteA *Vote `protobuf:"bytes,1,opt,name=vote_a,json=voteA,proto3" json:"vote_a,omitempty"`
  26. VoteB *Vote `protobuf:"bytes,2,opt,name=vote_b,json=voteB,proto3" json:"vote_b,omitempty"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *DuplicateVoteEvidence) Reset() { *m = DuplicateVoteEvidence{} }
  32. func (m *DuplicateVoteEvidence) String() string { return proto.CompactTextString(m) }
  33. func (*DuplicateVoteEvidence) ProtoMessage() {}
  34. func (*DuplicateVoteEvidence) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_86495eef24aeacc0, []int{0}
  36. }
  37. func (m *DuplicateVoteEvidence) XXX_Unmarshal(b []byte) error {
  38. return xxx_messageInfo_DuplicateVoteEvidence.Unmarshal(m, b)
  39. }
  40. func (m *DuplicateVoteEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. return xxx_messageInfo_DuplicateVoteEvidence.Marshal(b, m, deterministic)
  42. }
  43. func (m *DuplicateVoteEvidence) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_DuplicateVoteEvidence.Merge(m, src)
  45. }
  46. func (m *DuplicateVoteEvidence) XXX_Size() int {
  47. return xxx_messageInfo_DuplicateVoteEvidence.Size(m)
  48. }
  49. func (m *DuplicateVoteEvidence) XXX_DiscardUnknown() {
  50. xxx_messageInfo_DuplicateVoteEvidence.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_DuplicateVoteEvidence proto.InternalMessageInfo
  53. func (m *DuplicateVoteEvidence) GetVoteA() *Vote {
  54. if m != nil {
  55. return m.VoteA
  56. }
  57. return nil
  58. }
  59. func (m *DuplicateVoteEvidence) GetVoteB() *Vote {
  60. if m != nil {
  61. return m.VoteB
  62. }
  63. return nil
  64. }
  65. // MockEvidence is used for testing pruposes
  66. type MockEvidence struct {
  67. EvidenceHeight int64 `protobuf:"varint,1,opt,name=evidence_height,json=evidenceHeight,proto3" json:"evidence_height,omitempty"`
  68. EvidenceTime time.Time `protobuf:"bytes,2,opt,name=evidence_time,json=evidenceTime,proto3,stdtime" json:"evidence_time"`
  69. EvidenceAddress []byte `protobuf:"bytes,3,opt,name=evidence_address,json=evidenceAddress,proto3" json:"evidence_address,omitempty"`
  70. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  71. XXX_unrecognized []byte `json:"-"`
  72. XXX_sizecache int32 `json:"-"`
  73. }
  74. func (m *MockEvidence) Reset() { *m = MockEvidence{} }
  75. func (m *MockEvidence) String() string { return proto.CompactTextString(m) }
  76. func (*MockEvidence) ProtoMessage() {}
  77. func (*MockEvidence) Descriptor() ([]byte, []int) {
  78. return fileDescriptor_86495eef24aeacc0, []int{1}
  79. }
  80. func (m *MockEvidence) XXX_Unmarshal(b []byte) error {
  81. return xxx_messageInfo_MockEvidence.Unmarshal(m, b)
  82. }
  83. func (m *MockEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  84. return xxx_messageInfo_MockEvidence.Marshal(b, m, deterministic)
  85. }
  86. func (m *MockEvidence) XXX_Merge(src proto.Message) {
  87. xxx_messageInfo_MockEvidence.Merge(m, src)
  88. }
  89. func (m *MockEvidence) XXX_Size() int {
  90. return xxx_messageInfo_MockEvidence.Size(m)
  91. }
  92. func (m *MockEvidence) XXX_DiscardUnknown() {
  93. xxx_messageInfo_MockEvidence.DiscardUnknown(m)
  94. }
  95. var xxx_messageInfo_MockEvidence proto.InternalMessageInfo
  96. func (m *MockEvidence) GetEvidenceHeight() int64 {
  97. if m != nil {
  98. return m.EvidenceHeight
  99. }
  100. return 0
  101. }
  102. func (m *MockEvidence) GetEvidenceTime() time.Time {
  103. if m != nil {
  104. return m.EvidenceTime
  105. }
  106. return time.Time{}
  107. }
  108. func (m *MockEvidence) GetEvidenceAddress() []byte {
  109. if m != nil {
  110. return m.EvidenceAddress
  111. }
  112. return nil
  113. }
  114. type Evidence struct {
  115. // Types that are valid to be assigned to Sum:
  116. // *Evidence_DuplicateVoteEvidence
  117. // *Evidence_MockEvidence
  118. Sum isEvidence_Sum `protobuf_oneof:"sum"`
  119. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  120. XXX_unrecognized []byte `json:"-"`
  121. XXX_sizecache int32 `json:"-"`
  122. }
  123. func (m *Evidence) Reset() { *m = Evidence{} }
  124. func (m *Evidence) String() string { return proto.CompactTextString(m) }
  125. func (*Evidence) ProtoMessage() {}
  126. func (*Evidence) Descriptor() ([]byte, []int) {
  127. return fileDescriptor_86495eef24aeacc0, []int{2}
  128. }
  129. func (m *Evidence) XXX_Unmarshal(b []byte) error {
  130. return xxx_messageInfo_Evidence.Unmarshal(m, b)
  131. }
  132. func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  133. return xxx_messageInfo_Evidence.Marshal(b, m, deterministic)
  134. }
  135. func (m *Evidence) XXX_Merge(src proto.Message) {
  136. xxx_messageInfo_Evidence.Merge(m, src)
  137. }
  138. func (m *Evidence) XXX_Size() int {
  139. return xxx_messageInfo_Evidence.Size(m)
  140. }
  141. func (m *Evidence) XXX_DiscardUnknown() {
  142. xxx_messageInfo_Evidence.DiscardUnknown(m)
  143. }
  144. var xxx_messageInfo_Evidence proto.InternalMessageInfo
  145. type isEvidence_Sum interface {
  146. isEvidence_Sum()
  147. }
  148. type Evidence_DuplicateVoteEvidence struct {
  149. DuplicateVoteEvidence *DuplicateVoteEvidence `protobuf:"bytes,1,opt,name=duplicate_vote_evidence,json=duplicateVoteEvidence,proto3,oneof" json:"duplicate_vote_evidence,omitempty"`
  150. }
  151. type Evidence_MockEvidence struct {
  152. MockEvidence *MockEvidence `protobuf:"bytes,2,opt,name=mock_evidence,json=mockEvidence,proto3,oneof" json:"mock_evidence,omitempty"`
  153. }
  154. func (*Evidence_DuplicateVoteEvidence) isEvidence_Sum() {}
  155. func (*Evidence_MockEvidence) isEvidence_Sum() {}
  156. func (m *Evidence) GetSum() isEvidence_Sum {
  157. if m != nil {
  158. return m.Sum
  159. }
  160. return nil
  161. }
  162. func (m *Evidence) GetDuplicateVoteEvidence() *DuplicateVoteEvidence {
  163. if x, ok := m.GetSum().(*Evidence_DuplicateVoteEvidence); ok {
  164. return x.DuplicateVoteEvidence
  165. }
  166. return nil
  167. }
  168. func (m *Evidence) GetMockEvidence() *MockEvidence {
  169. if x, ok := m.GetSum().(*Evidence_MockEvidence); ok {
  170. return x.MockEvidence
  171. }
  172. return nil
  173. }
  174. // XXX_OneofWrappers is for the internal use of the proto package.
  175. func (*Evidence) XXX_OneofWrappers() []interface{} {
  176. return []interface{}{
  177. (*Evidence_DuplicateVoteEvidence)(nil),
  178. (*Evidence_MockEvidence)(nil),
  179. }
  180. }
  181. // EvidenceData contains any evidence of malicious wrong-doing by validators
  182. type EvidenceData struct {
  183. Evidence []Evidence `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence"`
  184. Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
  185. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  186. XXX_unrecognized []byte `json:"-"`
  187. XXX_sizecache int32 `json:"-"`
  188. }
  189. func (m *EvidenceData) Reset() { *m = EvidenceData{} }
  190. func (m *EvidenceData) String() string { return proto.CompactTextString(m) }
  191. func (*EvidenceData) ProtoMessage() {}
  192. func (*EvidenceData) Descriptor() ([]byte, []int) {
  193. return fileDescriptor_86495eef24aeacc0, []int{3}
  194. }
  195. func (m *EvidenceData) XXX_Unmarshal(b []byte) error {
  196. return xxx_messageInfo_EvidenceData.Unmarshal(m, b)
  197. }
  198. func (m *EvidenceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  199. return xxx_messageInfo_EvidenceData.Marshal(b, m, deterministic)
  200. }
  201. func (m *EvidenceData) XXX_Merge(src proto.Message) {
  202. xxx_messageInfo_EvidenceData.Merge(m, src)
  203. }
  204. func (m *EvidenceData) XXX_Size() int {
  205. return xxx_messageInfo_EvidenceData.Size(m)
  206. }
  207. func (m *EvidenceData) XXX_DiscardUnknown() {
  208. xxx_messageInfo_EvidenceData.DiscardUnknown(m)
  209. }
  210. var xxx_messageInfo_EvidenceData proto.InternalMessageInfo
  211. func (m *EvidenceData) GetEvidence() []Evidence {
  212. if m != nil {
  213. return m.Evidence
  214. }
  215. return nil
  216. }
  217. func (m *EvidenceData) GetHash() []byte {
  218. if m != nil {
  219. return m.Hash
  220. }
  221. return nil
  222. }
  223. func init() {
  224. proto.RegisterType((*DuplicateVoteEvidence)(nil), "tendermint.proto.types.DuplicateVoteEvidence")
  225. proto.RegisterType((*MockEvidence)(nil), "tendermint.proto.types.MockEvidence")
  226. proto.RegisterType((*Evidence)(nil), "tendermint.proto.types.Evidence")
  227. proto.RegisterType((*EvidenceData)(nil), "tendermint.proto.types.EvidenceData")
  228. }
  229. func init() { proto.RegisterFile("proto/types/evidence.proto", fileDescriptor_86495eef24aeacc0) }
  230. var fileDescriptor_86495eef24aeacc0 = []byte{
  231. // 404 bytes of a gzipped FileDescriptorProto
  232. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xd1, 0x6a, 0xe2, 0x40,
  233. 0x14, 0x35, 0x1b, 0x15, 0x19, 0xe3, 0xee, 0x12, 0x70, 0x95, 0xb0, 0xa0, 0x84, 0x65, 0xd7, 0x85,
  234. 0xdd, 0x09, 0xe8, 0x17, 0x18, 0x2c, 0x58, 0x4a, 0x5f, 0x86, 0xd2, 0x87, 0xbe, 0x84, 0x49, 0x32,
  235. 0x26, 0x41, 0xe3, 0x84, 0x64, 0x22, 0xf8, 0xd8, 0x3f, 0xe8, 0x8f, 0xf4, 0x3b, 0xda, 0xaf, 0x68,
  236. 0x7f, 0xa5, 0x64, 0x26, 0x33, 0xe6, 0x41, 0xa1, 0x2f, 0x72, 0xe7, 0xce, 0x39, 0x67, 0xce, 0x39,
  237. 0x06, 0x58, 0x59, 0x4e, 0x19, 0x75, 0xd8, 0x31, 0x23, 0x85, 0x43, 0x0e, 0x49, 0x48, 0xf6, 0x01,
  238. 0x81, 0x7c, 0x69, 0xfe, 0x60, 0x64, 0x1f, 0x92, 0x3c, 0x4d, 0xf6, 0x4c, 0x6c, 0x20, 0x87, 0x59,
  239. 0xbf, 0x59, 0x9c, 0xe4, 0xa1, 0x97, 0xe1, 0x9c, 0x1d, 0x1d, 0xc1, 0x8f, 0x68, 0x44, 0x4f, 0x93,
  240. 0x40, 0x5b, 0xa3, 0xa6, 0x36, 0xff, 0xad, 0x2f, 0x26, 0x11, 0xa5, 0xd1, 0x8e, 0x08, 0xae, 0x5f,
  241. 0x6e, 0x1c, 0x96, 0xa4, 0xa4, 0x60, 0x38, 0xcd, 0x04, 0xc0, 0x7e, 0xd4, 0xc0, 0x70, 0x55, 0x66,
  242. 0xbb, 0x24, 0xc0, 0x8c, 0xdc, 0x53, 0x46, 0xae, 0x6a, 0x67, 0xe6, 0x02, 0x74, 0x0f, 0x94, 0x11,
  243. 0x0f, 0x8f, 0xb5, 0xa9, 0x36, 0xeb, 0xcf, 0x7f, 0xc2, 0xf3, 0x26, 0x61, 0xc5, 0x42, 0x9d, 0x0a,
  244. 0xbb, 0x54, 0x24, 0x7f, 0xfc, 0xe5, 0xb3, 0x24, 0xd7, 0x7e, 0xd6, 0x80, 0x71, 0x4b, 0x83, 0xad,
  245. 0x7a, 0xfa, 0x0f, 0xf8, 0x26, 0x0b, 0xf2, 0x62, 0x92, 0x44, 0x31, 0xe3, 0x1e, 0x74, 0xf4, 0x55,
  246. 0xae, 0xd7, 0x7c, 0x6b, 0x5e, 0x83, 0x81, 0x02, 0x56, 0xc9, 0xea, 0x57, 0x2d, 0x28, 0x62, 0x43,
  247. 0x19, 0x1b, 0xde, 0xc9, 0xd8, 0x6e, 0xef, 0xf5, 0x6d, 0xd2, 0x7a, 0x7a, 0x9f, 0x68, 0xc8, 0x90,
  248. 0xd4, 0xea, 0xd2, 0xfc, 0x0b, 0xbe, 0x2b, 0x29, 0x1c, 0x86, 0x39, 0x29, 0x8a, 0xb1, 0x3e, 0xd5,
  249. 0x66, 0x06, 0x52, 0x5e, 0x96, 0x62, 0x6d, 0xbf, 0x68, 0xa0, 0xa7, 0xbc, 0x46, 0x60, 0x14, 0xca,
  250. 0xfe, 0x3c, 0x9e, 0x5d, 0xc2, 0xeb, 0xde, 0xfe, 0x5f, 0xaa, 0xe0, 0x6c, 0xed, 0xeb, 0x16, 0x1a,
  251. 0x86, 0x67, 0xff, 0x8f, 0x1b, 0x30, 0x48, 0x69, 0xb0, 0x3d, 0xc9, 0x8b, 0xac, 0xbf, 0x2e, 0xc9,
  252. 0x37, 0x1b, 0x5d, 0xb7, 0x90, 0x91, 0x36, 0xce, 0x6e, 0x07, 0xe8, 0x45, 0x99, 0xda, 0x1b, 0x60,
  253. 0xc8, 0xd5, 0x0a, 0x33, 0x6c, 0xba, 0xa0, 0xd7, 0x70, 0xaf, 0xcf, 0xfa, 0xf3, 0xe9, 0x25, 0x79,
  254. 0x25, 0xd5, 0xae, 0x0a, 0x45, 0x8a, 0x67, 0x9a, 0xa0, 0x1d, 0xe3, 0x22, 0xe6, 0xf6, 0x0c, 0xc4,
  255. 0x67, 0x17, 0x3e, 0xfc, 0x8b, 0x12, 0x16, 0x97, 0x3e, 0x0c, 0x68, 0xea, 0x9c, 0x14, 0x9b, 0x63,
  256. 0xe3, 0x13, 0xf6, 0xbb, 0xfc, 0xb0, 0xf8, 0x08, 0x00, 0x00, 0xff, 0xff, 0x08, 0xfc, 0xe8, 0x04,
  257. 0x34, 0x03, 0x00, 0x00,
  258. }