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.

625 lines
25 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. keys "github.com/tendermint/tendermint/proto/crypto/keys"
  10. math "math"
  11. time "time"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. var _ = time.Kitchen
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  23. // DuplicateVoteEvidence contains evidence a validator signed two conflicting
  24. // votes.
  25. type DuplicateVoteEvidence struct {
  26. VoteA *Vote `protobuf:"bytes,1,opt,name=vote_a,json=voteA,proto3" json:"vote_a,omitempty"`
  27. VoteB *Vote `protobuf:"bytes,2,opt,name=vote_b,json=voteB,proto3" json:"vote_b,omitempty"`
  28. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  29. XXX_unrecognized []byte `json:"-"`
  30. XXX_sizecache int32 `json:"-"`
  31. }
  32. func (m *DuplicateVoteEvidence) Reset() { *m = DuplicateVoteEvidence{} }
  33. func (m *DuplicateVoteEvidence) String() string { return proto.CompactTextString(m) }
  34. func (*DuplicateVoteEvidence) ProtoMessage() {}
  35. func (*DuplicateVoteEvidence) Descriptor() ([]byte, []int) {
  36. return fileDescriptor_86495eef24aeacc0, []int{0}
  37. }
  38. func (m *DuplicateVoteEvidence) XXX_Unmarshal(b []byte) error {
  39. return xxx_messageInfo_DuplicateVoteEvidence.Unmarshal(m, b)
  40. }
  41. func (m *DuplicateVoteEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  42. return xxx_messageInfo_DuplicateVoteEvidence.Marshal(b, m, deterministic)
  43. }
  44. func (m *DuplicateVoteEvidence) XXX_Merge(src proto.Message) {
  45. xxx_messageInfo_DuplicateVoteEvidence.Merge(m, src)
  46. }
  47. func (m *DuplicateVoteEvidence) XXX_Size() int {
  48. return xxx_messageInfo_DuplicateVoteEvidence.Size(m)
  49. }
  50. func (m *DuplicateVoteEvidence) XXX_DiscardUnknown() {
  51. xxx_messageInfo_DuplicateVoteEvidence.DiscardUnknown(m)
  52. }
  53. var xxx_messageInfo_DuplicateVoteEvidence proto.InternalMessageInfo
  54. func (m *DuplicateVoteEvidence) GetVoteA() *Vote {
  55. if m != nil {
  56. return m.VoteA
  57. }
  58. return nil
  59. }
  60. func (m *DuplicateVoteEvidence) GetVoteB() *Vote {
  61. if m != nil {
  62. return m.VoteB
  63. }
  64. return nil
  65. }
  66. type PotentialAmnesiaEvidence struct {
  67. VoteA *Vote `protobuf:"bytes,1,opt,name=vote_a,json=voteA,proto3" json:"vote_a,omitempty"`
  68. VoteB *Vote `protobuf:"bytes,2,opt,name=vote_b,json=voteB,proto3" json:"vote_b,omitempty"`
  69. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  70. XXX_unrecognized []byte `json:"-"`
  71. XXX_sizecache int32 `json:"-"`
  72. }
  73. func (m *PotentialAmnesiaEvidence) Reset() { *m = PotentialAmnesiaEvidence{} }
  74. func (m *PotentialAmnesiaEvidence) String() string { return proto.CompactTextString(m) }
  75. func (*PotentialAmnesiaEvidence) ProtoMessage() {}
  76. func (*PotentialAmnesiaEvidence) Descriptor() ([]byte, []int) {
  77. return fileDescriptor_86495eef24aeacc0, []int{1}
  78. }
  79. func (m *PotentialAmnesiaEvidence) XXX_Unmarshal(b []byte) error {
  80. return xxx_messageInfo_PotentialAmnesiaEvidence.Unmarshal(m, b)
  81. }
  82. func (m *PotentialAmnesiaEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  83. return xxx_messageInfo_PotentialAmnesiaEvidence.Marshal(b, m, deterministic)
  84. }
  85. func (m *PotentialAmnesiaEvidence) XXX_Merge(src proto.Message) {
  86. xxx_messageInfo_PotentialAmnesiaEvidence.Merge(m, src)
  87. }
  88. func (m *PotentialAmnesiaEvidence) XXX_Size() int {
  89. return xxx_messageInfo_PotentialAmnesiaEvidence.Size(m)
  90. }
  91. func (m *PotentialAmnesiaEvidence) XXX_DiscardUnknown() {
  92. xxx_messageInfo_PotentialAmnesiaEvidence.DiscardUnknown(m)
  93. }
  94. var xxx_messageInfo_PotentialAmnesiaEvidence proto.InternalMessageInfo
  95. func (m *PotentialAmnesiaEvidence) GetVoteA() *Vote {
  96. if m != nil {
  97. return m.VoteA
  98. }
  99. return nil
  100. }
  101. func (m *PotentialAmnesiaEvidence) GetVoteB() *Vote {
  102. if m != nil {
  103. return m.VoteB
  104. }
  105. return nil
  106. }
  107. // MockEvidence is used for testing pruposes
  108. type MockEvidence struct {
  109. EvidenceHeight int64 `protobuf:"varint,1,opt,name=evidence_height,json=evidenceHeight,proto3" json:"evidence_height,omitempty"`
  110. EvidenceTime time.Time `protobuf:"bytes,2,opt,name=evidence_time,json=evidenceTime,proto3,stdtime" json:"evidence_time"`
  111. EvidenceAddress []byte `protobuf:"bytes,3,opt,name=evidence_address,json=evidenceAddress,proto3" json:"evidence_address,omitempty"`
  112. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  113. XXX_unrecognized []byte `json:"-"`
  114. XXX_sizecache int32 `json:"-"`
  115. }
  116. func (m *MockEvidence) Reset() { *m = MockEvidence{} }
  117. func (m *MockEvidence) String() string { return proto.CompactTextString(m) }
  118. func (*MockEvidence) ProtoMessage() {}
  119. func (*MockEvidence) Descriptor() ([]byte, []int) {
  120. return fileDescriptor_86495eef24aeacc0, []int{2}
  121. }
  122. func (m *MockEvidence) XXX_Unmarshal(b []byte) error {
  123. return xxx_messageInfo_MockEvidence.Unmarshal(m, b)
  124. }
  125. func (m *MockEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  126. return xxx_messageInfo_MockEvidence.Marshal(b, m, deterministic)
  127. }
  128. func (m *MockEvidence) XXX_Merge(src proto.Message) {
  129. xxx_messageInfo_MockEvidence.Merge(m, src)
  130. }
  131. func (m *MockEvidence) XXX_Size() int {
  132. return xxx_messageInfo_MockEvidence.Size(m)
  133. }
  134. func (m *MockEvidence) XXX_DiscardUnknown() {
  135. xxx_messageInfo_MockEvidence.DiscardUnknown(m)
  136. }
  137. var xxx_messageInfo_MockEvidence proto.InternalMessageInfo
  138. func (m *MockEvidence) GetEvidenceHeight() int64 {
  139. if m != nil {
  140. return m.EvidenceHeight
  141. }
  142. return 0
  143. }
  144. func (m *MockEvidence) GetEvidenceTime() time.Time {
  145. if m != nil {
  146. return m.EvidenceTime
  147. }
  148. return time.Time{}
  149. }
  150. func (m *MockEvidence) GetEvidenceAddress() []byte {
  151. if m != nil {
  152. return m.EvidenceAddress
  153. }
  154. return nil
  155. }
  156. type MockRandomEvidence struct {
  157. EvidenceHeight int64 `protobuf:"varint,1,opt,name=evidence_height,json=evidenceHeight,proto3" json:"evidence_height,omitempty"`
  158. EvidenceTime time.Time `protobuf:"bytes,2,opt,name=evidence_time,json=evidenceTime,proto3,stdtime" json:"evidence_time"`
  159. EvidenceAddress []byte `protobuf:"bytes,3,opt,name=evidence_address,json=evidenceAddress,proto3" json:"evidence_address,omitempty"`
  160. RandBytes []byte `protobuf:"bytes,4,opt,name=rand_bytes,json=randBytes,proto3" json:"rand_bytes,omitempty"`
  161. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  162. XXX_unrecognized []byte `json:"-"`
  163. XXX_sizecache int32 `json:"-"`
  164. }
  165. func (m *MockRandomEvidence) Reset() { *m = MockRandomEvidence{} }
  166. func (m *MockRandomEvidence) String() string { return proto.CompactTextString(m) }
  167. func (*MockRandomEvidence) ProtoMessage() {}
  168. func (*MockRandomEvidence) Descriptor() ([]byte, []int) {
  169. return fileDescriptor_86495eef24aeacc0, []int{3}
  170. }
  171. func (m *MockRandomEvidence) XXX_Unmarshal(b []byte) error {
  172. return xxx_messageInfo_MockRandomEvidence.Unmarshal(m, b)
  173. }
  174. func (m *MockRandomEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  175. return xxx_messageInfo_MockRandomEvidence.Marshal(b, m, deterministic)
  176. }
  177. func (m *MockRandomEvidence) XXX_Merge(src proto.Message) {
  178. xxx_messageInfo_MockRandomEvidence.Merge(m, src)
  179. }
  180. func (m *MockRandomEvidence) XXX_Size() int {
  181. return xxx_messageInfo_MockRandomEvidence.Size(m)
  182. }
  183. func (m *MockRandomEvidence) XXX_DiscardUnknown() {
  184. xxx_messageInfo_MockRandomEvidence.DiscardUnknown(m)
  185. }
  186. var xxx_messageInfo_MockRandomEvidence proto.InternalMessageInfo
  187. func (m *MockRandomEvidence) GetEvidenceHeight() int64 {
  188. if m != nil {
  189. return m.EvidenceHeight
  190. }
  191. return 0
  192. }
  193. func (m *MockRandomEvidence) GetEvidenceTime() time.Time {
  194. if m != nil {
  195. return m.EvidenceTime
  196. }
  197. return time.Time{}
  198. }
  199. func (m *MockRandomEvidence) GetEvidenceAddress() []byte {
  200. if m != nil {
  201. return m.EvidenceAddress
  202. }
  203. return nil
  204. }
  205. func (m *MockRandomEvidence) GetRandBytes() []byte {
  206. if m != nil {
  207. return m.RandBytes
  208. }
  209. return nil
  210. }
  211. type ConflictingHeadersEvidence struct {
  212. H1 *SignedHeader `protobuf:"bytes,1,opt,name=h1,proto3" json:"h1,omitempty"`
  213. H2 *SignedHeader `protobuf:"bytes,2,opt,name=h2,proto3" json:"h2,omitempty"`
  214. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  215. XXX_unrecognized []byte `json:"-"`
  216. XXX_sizecache int32 `json:"-"`
  217. }
  218. func (m *ConflictingHeadersEvidence) Reset() { *m = ConflictingHeadersEvidence{} }
  219. func (m *ConflictingHeadersEvidence) String() string { return proto.CompactTextString(m) }
  220. func (*ConflictingHeadersEvidence) ProtoMessage() {}
  221. func (*ConflictingHeadersEvidence) Descriptor() ([]byte, []int) {
  222. return fileDescriptor_86495eef24aeacc0, []int{4}
  223. }
  224. func (m *ConflictingHeadersEvidence) XXX_Unmarshal(b []byte) error {
  225. return xxx_messageInfo_ConflictingHeadersEvidence.Unmarshal(m, b)
  226. }
  227. func (m *ConflictingHeadersEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  228. return xxx_messageInfo_ConflictingHeadersEvidence.Marshal(b, m, deterministic)
  229. }
  230. func (m *ConflictingHeadersEvidence) XXX_Merge(src proto.Message) {
  231. xxx_messageInfo_ConflictingHeadersEvidence.Merge(m, src)
  232. }
  233. func (m *ConflictingHeadersEvidence) XXX_Size() int {
  234. return xxx_messageInfo_ConflictingHeadersEvidence.Size(m)
  235. }
  236. func (m *ConflictingHeadersEvidence) XXX_DiscardUnknown() {
  237. xxx_messageInfo_ConflictingHeadersEvidence.DiscardUnknown(m)
  238. }
  239. var xxx_messageInfo_ConflictingHeadersEvidence proto.InternalMessageInfo
  240. func (m *ConflictingHeadersEvidence) GetH1() *SignedHeader {
  241. if m != nil {
  242. return m.H1
  243. }
  244. return nil
  245. }
  246. func (m *ConflictingHeadersEvidence) GetH2() *SignedHeader {
  247. if m != nil {
  248. return m.H2
  249. }
  250. return nil
  251. }
  252. type LunaticValidatorEvidence struct {
  253. Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  254. Vote *Vote `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"`
  255. InvalidHeaderField string `protobuf:"bytes,3,opt,name=invalid_header_field,json=invalidHeaderField,proto3" json:"invalid_header_field,omitempty"`
  256. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  257. XXX_unrecognized []byte `json:"-"`
  258. XXX_sizecache int32 `json:"-"`
  259. }
  260. func (m *LunaticValidatorEvidence) Reset() { *m = LunaticValidatorEvidence{} }
  261. func (m *LunaticValidatorEvidence) String() string { return proto.CompactTextString(m) }
  262. func (*LunaticValidatorEvidence) ProtoMessage() {}
  263. func (*LunaticValidatorEvidence) Descriptor() ([]byte, []int) {
  264. return fileDescriptor_86495eef24aeacc0, []int{5}
  265. }
  266. func (m *LunaticValidatorEvidence) XXX_Unmarshal(b []byte) error {
  267. return xxx_messageInfo_LunaticValidatorEvidence.Unmarshal(m, b)
  268. }
  269. func (m *LunaticValidatorEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  270. return xxx_messageInfo_LunaticValidatorEvidence.Marshal(b, m, deterministic)
  271. }
  272. func (m *LunaticValidatorEvidence) XXX_Merge(src proto.Message) {
  273. xxx_messageInfo_LunaticValidatorEvidence.Merge(m, src)
  274. }
  275. func (m *LunaticValidatorEvidence) XXX_Size() int {
  276. return xxx_messageInfo_LunaticValidatorEvidence.Size(m)
  277. }
  278. func (m *LunaticValidatorEvidence) XXX_DiscardUnknown() {
  279. xxx_messageInfo_LunaticValidatorEvidence.DiscardUnknown(m)
  280. }
  281. var xxx_messageInfo_LunaticValidatorEvidence proto.InternalMessageInfo
  282. func (m *LunaticValidatorEvidence) GetHeader() *Header {
  283. if m != nil {
  284. return m.Header
  285. }
  286. return nil
  287. }
  288. func (m *LunaticValidatorEvidence) GetVote() *Vote {
  289. if m != nil {
  290. return m.Vote
  291. }
  292. return nil
  293. }
  294. func (m *LunaticValidatorEvidence) GetInvalidHeaderField() string {
  295. if m != nil {
  296. return m.InvalidHeaderField
  297. }
  298. return ""
  299. }
  300. type Evidence struct {
  301. // Types that are valid to be assigned to Sum:
  302. // *Evidence_DuplicateVoteEvidence
  303. // *Evidence_ConflictingHeadersEvidence
  304. // *Evidence_LunaticValidatorEvidence
  305. // *Evidence_PotentialAmnesiaEvidence
  306. // *Evidence_MockEvidence
  307. // *Evidence_MockRandomEvidence
  308. Sum isEvidence_Sum `protobuf_oneof:"sum"`
  309. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  310. XXX_unrecognized []byte `json:"-"`
  311. XXX_sizecache int32 `json:"-"`
  312. }
  313. func (m *Evidence) Reset() { *m = Evidence{} }
  314. func (m *Evidence) String() string { return proto.CompactTextString(m) }
  315. func (*Evidence) ProtoMessage() {}
  316. func (*Evidence) Descriptor() ([]byte, []int) {
  317. return fileDescriptor_86495eef24aeacc0, []int{6}
  318. }
  319. func (m *Evidence) XXX_Unmarshal(b []byte) error {
  320. return xxx_messageInfo_Evidence.Unmarshal(m, b)
  321. }
  322. func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  323. return xxx_messageInfo_Evidence.Marshal(b, m, deterministic)
  324. }
  325. func (m *Evidence) XXX_Merge(src proto.Message) {
  326. xxx_messageInfo_Evidence.Merge(m, src)
  327. }
  328. func (m *Evidence) XXX_Size() int {
  329. return xxx_messageInfo_Evidence.Size(m)
  330. }
  331. func (m *Evidence) XXX_DiscardUnknown() {
  332. xxx_messageInfo_Evidence.DiscardUnknown(m)
  333. }
  334. var xxx_messageInfo_Evidence proto.InternalMessageInfo
  335. type isEvidence_Sum interface {
  336. isEvidence_Sum()
  337. }
  338. type Evidence_DuplicateVoteEvidence struct {
  339. DuplicateVoteEvidence *DuplicateVoteEvidence `protobuf:"bytes,1,opt,name=duplicate_vote_evidence,json=duplicateVoteEvidence,proto3,oneof" json:"duplicate_vote_evidence,omitempty"`
  340. }
  341. type Evidence_ConflictingHeadersEvidence struct {
  342. ConflictingHeadersEvidence *ConflictingHeadersEvidence `protobuf:"bytes,2,opt,name=conflicting_headers_evidence,json=conflictingHeadersEvidence,proto3,oneof" json:"conflicting_headers_evidence,omitempty"`
  343. }
  344. type Evidence_LunaticValidatorEvidence struct {
  345. LunaticValidatorEvidence *LunaticValidatorEvidence `protobuf:"bytes,3,opt,name=lunatic_validator_evidence,json=lunaticValidatorEvidence,proto3,oneof" json:"lunatic_validator_evidence,omitempty"`
  346. }
  347. type Evidence_PotentialAmnesiaEvidence struct {
  348. PotentialAmnesiaEvidence *PotentialAmnesiaEvidence `protobuf:"bytes,4,opt,name=potential_amnesia_evidence,json=potentialAmnesiaEvidence,proto3,oneof" json:"potential_amnesia_evidence,omitempty"`
  349. }
  350. type Evidence_MockEvidence struct {
  351. MockEvidence *MockEvidence `protobuf:"bytes,5,opt,name=mock_evidence,json=mockEvidence,proto3,oneof" json:"mock_evidence,omitempty"`
  352. }
  353. type Evidence_MockRandomEvidence struct {
  354. MockRandomEvidence *MockRandomEvidence `protobuf:"bytes,6,opt,name=mock_random_evidence,json=mockRandomEvidence,proto3,oneof" json:"mock_random_evidence,omitempty"`
  355. }
  356. func (*Evidence_DuplicateVoteEvidence) isEvidence_Sum() {}
  357. func (*Evidence_ConflictingHeadersEvidence) isEvidence_Sum() {}
  358. func (*Evidence_LunaticValidatorEvidence) isEvidence_Sum() {}
  359. func (*Evidence_PotentialAmnesiaEvidence) isEvidence_Sum() {}
  360. func (*Evidence_MockEvidence) isEvidence_Sum() {}
  361. func (*Evidence_MockRandomEvidence) isEvidence_Sum() {}
  362. func (m *Evidence) GetSum() isEvidence_Sum {
  363. if m != nil {
  364. return m.Sum
  365. }
  366. return nil
  367. }
  368. func (m *Evidence) GetDuplicateVoteEvidence() *DuplicateVoteEvidence {
  369. if x, ok := m.GetSum().(*Evidence_DuplicateVoteEvidence); ok {
  370. return x.DuplicateVoteEvidence
  371. }
  372. return nil
  373. }
  374. func (m *Evidence) GetConflictingHeadersEvidence() *ConflictingHeadersEvidence {
  375. if x, ok := m.GetSum().(*Evidence_ConflictingHeadersEvidence); ok {
  376. return x.ConflictingHeadersEvidence
  377. }
  378. return nil
  379. }
  380. func (m *Evidence) GetLunaticValidatorEvidence() *LunaticValidatorEvidence {
  381. if x, ok := m.GetSum().(*Evidence_LunaticValidatorEvidence); ok {
  382. return x.LunaticValidatorEvidence
  383. }
  384. return nil
  385. }
  386. func (m *Evidence) GetPotentialAmnesiaEvidence() *PotentialAmnesiaEvidence {
  387. if x, ok := m.GetSum().(*Evidence_PotentialAmnesiaEvidence); ok {
  388. return x.PotentialAmnesiaEvidence
  389. }
  390. return nil
  391. }
  392. func (m *Evidence) GetMockEvidence() *MockEvidence {
  393. if x, ok := m.GetSum().(*Evidence_MockEvidence); ok {
  394. return x.MockEvidence
  395. }
  396. return nil
  397. }
  398. func (m *Evidence) GetMockRandomEvidence() *MockRandomEvidence {
  399. if x, ok := m.GetSum().(*Evidence_MockRandomEvidence); ok {
  400. return x.MockRandomEvidence
  401. }
  402. return nil
  403. }
  404. // XXX_OneofWrappers is for the internal use of the proto package.
  405. func (*Evidence) XXX_OneofWrappers() []interface{} {
  406. return []interface{}{
  407. (*Evidence_DuplicateVoteEvidence)(nil),
  408. (*Evidence_ConflictingHeadersEvidence)(nil),
  409. (*Evidence_LunaticValidatorEvidence)(nil),
  410. (*Evidence_PotentialAmnesiaEvidence)(nil),
  411. (*Evidence_MockEvidence)(nil),
  412. (*Evidence_MockRandomEvidence)(nil),
  413. }
  414. }
  415. // EvidenceData contains any evidence of malicious wrong-doing by validators
  416. type EvidenceData struct {
  417. Evidence []Evidence `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence"`
  418. Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
  419. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  420. XXX_unrecognized []byte `json:"-"`
  421. XXX_sizecache int32 `json:"-"`
  422. }
  423. func (m *EvidenceData) Reset() { *m = EvidenceData{} }
  424. func (m *EvidenceData) String() string { return proto.CompactTextString(m) }
  425. func (*EvidenceData) ProtoMessage() {}
  426. func (*EvidenceData) Descriptor() ([]byte, []int) {
  427. return fileDescriptor_86495eef24aeacc0, []int{7}
  428. }
  429. func (m *EvidenceData) XXX_Unmarshal(b []byte) error {
  430. return xxx_messageInfo_EvidenceData.Unmarshal(m, b)
  431. }
  432. func (m *EvidenceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  433. return xxx_messageInfo_EvidenceData.Marshal(b, m, deterministic)
  434. }
  435. func (m *EvidenceData) XXX_Merge(src proto.Message) {
  436. xxx_messageInfo_EvidenceData.Merge(m, src)
  437. }
  438. func (m *EvidenceData) XXX_Size() int {
  439. return xxx_messageInfo_EvidenceData.Size(m)
  440. }
  441. func (m *EvidenceData) XXX_DiscardUnknown() {
  442. xxx_messageInfo_EvidenceData.DiscardUnknown(m)
  443. }
  444. var xxx_messageInfo_EvidenceData proto.InternalMessageInfo
  445. func (m *EvidenceData) GetEvidence() []Evidence {
  446. if m != nil {
  447. return m.Evidence
  448. }
  449. return nil
  450. }
  451. func (m *EvidenceData) GetHash() []byte {
  452. if m != nil {
  453. return m.Hash
  454. }
  455. return nil
  456. }
  457. type ProofOfLockChange struct {
  458. Votes []Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes"`
  459. PubKey keys.PublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
  460. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  461. XXX_unrecognized []byte `json:"-"`
  462. XXX_sizecache int32 `json:"-"`
  463. }
  464. func (m *ProofOfLockChange) Reset() { *m = ProofOfLockChange{} }
  465. func (m *ProofOfLockChange) String() string { return proto.CompactTextString(m) }
  466. func (*ProofOfLockChange) ProtoMessage() {}
  467. func (*ProofOfLockChange) Descriptor() ([]byte, []int) {
  468. return fileDescriptor_86495eef24aeacc0, []int{8}
  469. }
  470. func (m *ProofOfLockChange) XXX_Unmarshal(b []byte) error {
  471. return xxx_messageInfo_ProofOfLockChange.Unmarshal(m, b)
  472. }
  473. func (m *ProofOfLockChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  474. return xxx_messageInfo_ProofOfLockChange.Marshal(b, m, deterministic)
  475. }
  476. func (m *ProofOfLockChange) XXX_Merge(src proto.Message) {
  477. xxx_messageInfo_ProofOfLockChange.Merge(m, src)
  478. }
  479. func (m *ProofOfLockChange) XXX_Size() int {
  480. return xxx_messageInfo_ProofOfLockChange.Size(m)
  481. }
  482. func (m *ProofOfLockChange) XXX_DiscardUnknown() {
  483. xxx_messageInfo_ProofOfLockChange.DiscardUnknown(m)
  484. }
  485. var xxx_messageInfo_ProofOfLockChange proto.InternalMessageInfo
  486. func (m *ProofOfLockChange) GetVotes() []Vote {
  487. if m != nil {
  488. return m.Votes
  489. }
  490. return nil
  491. }
  492. func (m *ProofOfLockChange) GetPubKey() keys.PublicKey {
  493. if m != nil {
  494. return m.PubKey
  495. }
  496. return keys.PublicKey{}
  497. }
  498. func init() {
  499. proto.RegisterType((*DuplicateVoteEvidence)(nil), "tendermint.proto.types.DuplicateVoteEvidence")
  500. proto.RegisterType((*PotentialAmnesiaEvidence)(nil), "tendermint.proto.types.PotentialAmnesiaEvidence")
  501. proto.RegisterType((*MockEvidence)(nil), "tendermint.proto.types.MockEvidence")
  502. proto.RegisterType((*MockRandomEvidence)(nil), "tendermint.proto.types.MockRandomEvidence")
  503. proto.RegisterType((*ConflictingHeadersEvidence)(nil), "tendermint.proto.types.ConflictingHeadersEvidence")
  504. proto.RegisterType((*LunaticValidatorEvidence)(nil), "tendermint.proto.types.LunaticValidatorEvidence")
  505. proto.RegisterType((*Evidence)(nil), "tendermint.proto.types.Evidence")
  506. proto.RegisterType((*EvidenceData)(nil), "tendermint.proto.types.EvidenceData")
  507. proto.RegisterType((*ProofOfLockChange)(nil), "tendermint.proto.types.ProofOfLockChange")
  508. }
  509. func init() { proto.RegisterFile("proto/types/evidence.proto", fileDescriptor_86495eef24aeacc0) }
  510. var fileDescriptor_86495eef24aeacc0 = []byte{
  511. // 762 bytes of a gzipped FileDescriptorProto
  512. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0xcd, 0x6e, 0xd3, 0x4a,
  513. 0x14, 0x8e, 0x9b, 0x9f, 0xdb, 0x9e, 0xa6, 0xf7, 0xc7, 0x6a, 0x6f, 0x23, 0xab, 0xbd, 0xad, 0xac,
  514. 0xab, 0xdb, 0x5e, 0x04, 0x4e, 0x9b, 0x22, 0xc4, 0xb6, 0x69, 0xa9, 0x82, 0x5a, 0x44, 0x65, 0x50,
  515. 0x17, 0x2c, 0xb0, 0xc6, 0xf6, 0xc4, 0x1e, 0xc5, 0xf6, 0x58, 0xf6, 0x38, 0x52, 0x96, 0x08, 0x16,
  516. 0x2c, 0xd9, 0xf0, 0x18, 0x6c, 0x79, 0x06, 0xd6, 0x3c, 0x00, 0xbc, 0x0a, 0xf2, 0xcc, 0xd8, 0x4e,
  517. 0xd5, 0x3a, 0xea, 0x0e, 0xb1, 0x89, 0x26, 0x67, 0xce, 0x77, 0xbe, 0x6f, 0x7c, 0xce, 0x7c, 0x03,
  518. 0x5a, 0x9c, 0x50, 0x46, 0xfb, 0x6c, 0x16, 0xe3, 0xb4, 0x8f, 0xa7, 0xc4, 0xc5, 0x91, 0x83, 0x0d,
  519. 0x1e, 0x54, 0xff, 0x66, 0x38, 0x72, 0x71, 0x12, 0x92, 0x88, 0x89, 0x88, 0xc1, 0xd3, 0xb4, 0xff,
  520. 0x98, 0x4f, 0x12, 0xd7, 0x8a, 0x51, 0xc2, 0x66, 0x7d, 0x81, 0xf7, 0xa8, 0x47, 0xab, 0x95, 0xc8,
  521. 0xd6, 0x36, 0xe7, 0x6b, 0xf3, 0x5f, 0xb9, 0xb1, 0xe3, 0x51, 0xea, 0x05, 0x58, 0x60, 0xed, 0x6c,
  522. 0xdc, 0x67, 0x24, 0xc4, 0x29, 0x43, 0x61, 0x2c, 0x13, 0xb6, 0x05, 0xd2, 0x49, 0x66, 0x31, 0xa3,
  523. 0xfd, 0x09, 0x9e, 0x5d, 0xc3, 0xeb, 0x6f, 0x14, 0xd8, 0x38, 0xcd, 0xe2, 0x80, 0x38, 0x88, 0xe1,
  524. 0x2b, 0xca, 0xf0, 0x13, 0x29, 0x5c, 0x3d, 0x82, 0xce, 0x94, 0x32, 0x6c, 0xa1, 0x9e, 0xb2, 0xab,
  525. 0xec, 0xaf, 0x0e, 0xb6, 0x8c, 0xdb, 0xcf, 0x60, 0xe4, 0x28, 0xb3, 0x9d, 0xe7, 0x1e, 0x97, 0x20,
  526. 0xbb, 0xb7, 0x74, 0x57, 0xd0, 0x50, 0x7f, 0xa7, 0x40, 0xef, 0x92, 0x32, 0x1c, 0x31, 0x82, 0x82,
  527. 0xe3, 0x30, 0xc2, 0x29, 0x41, 0x3f, 0x41, 0xc6, 0x27, 0x05, 0xba, 0xcf, 0xa8, 0x33, 0x29, 0xa9,
  528. 0xf7, 0xe0, 0x8f, 0xa2, 0x8d, 0x96, 0x8f, 0x89, 0xe7, 0x33, 0xae, 0xa1, 0x69, 0xfe, 0x5e, 0x84,
  529. 0x47, 0x3c, 0xaa, 0x3e, 0x85, 0xb5, 0x32, 0x31, 0xff, 0xfe, 0x92, 0x55, 0x33, 0x44, 0x73, 0x8c,
  530. 0xa2, 0x39, 0xc6, 0xcb, 0xa2, 0x39, 0xc3, 0xe5, 0x2f, 0xdf, 0x76, 0x1a, 0x1f, 0xbe, 0xef, 0x28,
  531. 0x66, 0xb7, 0x80, 0xe6, 0x9b, 0xea, 0xff, 0xf0, 0x67, 0x59, 0x0a, 0xb9, 0x6e, 0x82, 0xd3, 0xb4,
  532. 0xd7, 0xdc, 0x55, 0xf6, 0xbb, 0x66, 0xa9, 0xe5, 0x58, 0x84, 0xf5, 0xaf, 0x0a, 0xa8, 0xb9, 0x5e,
  533. 0x13, 0x45, 0x2e, 0x0d, 0x7f, 0x11, 0xd5, 0xea, 0x36, 0x40, 0x82, 0x22, 0xd7, 0xb2, 0x67, 0x0c,
  534. 0xa7, 0xbd, 0x16, 0x4f, 0x5a, 0xc9, 0x23, 0xc3, 0x3c, 0xa0, 0xbf, 0x57, 0x40, 0x3b, 0xa1, 0xd1,
  535. 0x38, 0x20, 0x0e, 0x23, 0x91, 0x37, 0xc2, 0xc8, 0xc5, 0x49, 0x5a, 0x1e, 0xee, 0x21, 0x2c, 0xf9,
  536. 0x87, 0x72, 0x12, 0xfe, 0xad, 0x6b, 0xea, 0x0b, 0xe2, 0x45, 0xd8, 0x15, 0x50, 0x73, 0xc9, 0x3f,
  537. 0xe4, 0xa8, 0x81, 0x3c, 0xde, 0x5d, 0x51, 0x03, 0xfd, 0xb3, 0x02, 0xbd, 0x8b, 0x2c, 0x42, 0x8c,
  538. 0x38, 0x57, 0x28, 0x20, 0x2e, 0x62, 0x34, 0x29, 0x85, 0x3c, 0x82, 0x8e, 0xcf, 0x53, 0xa5, 0x98,
  539. 0x7f, 0xea, 0xca, 0xca, 0x82, 0x32, 0x5b, 0x3d, 0x80, 0x56, 0x3e, 0x6d, 0x77, 0x9a, 0x4b, 0x9e,
  540. 0xa9, 0x1e, 0xc0, 0x3a, 0x89, 0xa6, 0xb9, 0x00, 0x4b, 0xd4, 0xb0, 0xc6, 0x04, 0x07, 0x2e, 0xff,
  541. 0xbe, 0x2b, 0xa6, 0x2a, 0xf7, 0x04, 0xcd, 0x59, 0xbe, 0xa3, 0xbf, 0x6d, 0xc3, 0x72, 0x29, 0xd4,
  542. 0x83, 0x4d, 0xb7, 0xb8, 0xdf, 0x16, 0xbf, 0x14, 0x45, 0x47, 0xa4, 0xf2, 0x07, 0x75, 0x1a, 0x6e,
  543. 0xb5, 0x85, 0x51, 0xc3, 0xdc, 0x70, 0x6f, 0xf5, 0x8b, 0x29, 0x6c, 0x39, 0x55, 0xe3, 0xa4, 0xd6,
  544. 0xb4, 0x62, 0x13, 0x27, 0x1e, 0xd4, 0xb1, 0xd5, 0x37, 0x7d, 0xd4, 0x30, 0x35, 0xa7, 0x7e, 0x24,
  545. 0x62, 0xd0, 0x02, 0xd1, 0x25, 0x6b, 0x5a, 0xb4, 0xa9, 0x62, 0x6d, 0x72, 0xd6, 0x83, 0x3a, 0xd6,
  546. 0xba, 0xfe, 0x8e, 0x1a, 0x66, 0x2f, 0xa8, 0xeb, 0x7d, 0x0c, 0x5a, 0x5c, 0xd8, 0x95, 0x85, 0x84,
  547. 0x5f, 0x55, 0x8c, 0xad, 0xc5, 0x8c, 0x75, 0x46, 0x97, 0x33, 0xc6, 0x75, 0x26, 0x78, 0x0e, 0x6b,
  548. 0x21, 0x75, 0x26, 0x15, 0x49, 0x7b, 0xf1, 0x2c, 0xcf, 0xdb, 0xd8, 0xa8, 0x61, 0x76, 0xc3, 0x79,
  549. 0x5b, 0x7b, 0x0d, 0xeb, 0xbc, 0x58, 0xc2, 0x7d, 0xa3, 0xaa, 0xd9, 0xe1, 0x35, 0xef, 0x2d, 0xaa,
  550. 0x79, 0xdd, 0x6a, 0x46, 0x0d, 0x53, 0x0d, 0x6f, 0x44, 0x87, 0x6d, 0x68, 0xa6, 0x59, 0xa8, 0x8f,
  551. 0xa1, 0x5b, 0x84, 0x4e, 0x11, 0x43, 0xea, 0x10, 0x96, 0xe7, 0x26, 0xaf, 0xb9, 0xbf, 0x3a, 0xd8,
  552. 0xad, 0xa3, 0x2a, 0x4b, 0xb5, 0x72, 0xbf, 0x31, 0x4b, 0x9c, 0xaa, 0x42, 0xcb, 0x47, 0xa9, 0xcf,
  553. 0x67, 0xa9, 0x6b, 0xf2, 0xb5, 0xfe, 0x51, 0x81, 0xbf, 0x2e, 0x13, 0x4a, 0xc7, 0xcf, 0xc7, 0x17,
  554. 0xd4, 0x99, 0x9c, 0xf8, 0x28, 0xf2, 0xb0, 0xfa, 0x18, 0xb8, 0xab, 0xa7, 0x92, 0x6a, 0xe1, 0x45,
  555. 0x93, 0x34, 0x02, 0xa0, 0x9e, 0xc1, 0x6f, 0x71, 0x66, 0x5b, 0x13, 0x3c, 0x93, 0x23, 0xbb, 0x77,
  556. 0x13, 0x2b, 0x5e, 0x53, 0x23, 0x7f, 0x4d, 0x8d, 0xcb, 0xcc, 0x0e, 0x88, 0x73, 0x8e, 0x67, 0xb2,
  557. 0x4c, 0x27, 0xce, 0xec, 0xfc, 0x9f, 0xf1, 0xea, 0xbe, 0x47, 0x98, 0x9f, 0xd9, 0x86, 0x43, 0xc3,
  558. 0x7e, 0x55, 0x62, 0x7e, 0x39, 0xf7, 0xaa, 0xdb, 0x1d, 0xfe, 0xe7, 0xe8, 0x47, 0x00, 0x00, 0x00,
  559. 0xff, 0xff, 0x4a, 0x3f, 0xf4, 0x74, 0x47, 0x08, 0x00, 0x00,
  560. }