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.

36 lines
1023 B

  1. syntax = "proto3";
  2. package tendermint.proto.types;
  3. option go_package = "github.com/tendermint/tendermint/proto/types";
  4. import "third_party/proto/gogoproto/gogo.proto";
  5. import "proto/types/types.proto";
  6. import "google/protobuf/timestamp.proto";
  7. // DuplicateVoteEvidence contains evidence a validator signed two conflicting
  8. // votes.
  9. message DuplicateVoteEvidence {
  10. Vote vote_a = 1;
  11. Vote vote_b = 2;
  12. }
  13. // MockEvidence is used for testing pruposes
  14. message MockEvidence {
  15. int64 evidence_height = 1;
  16. google.protobuf.Timestamp evidence_time = 2
  17. [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
  18. bytes evidence_address = 3;
  19. }
  20. message Evidence {
  21. oneof sum {
  22. DuplicateVoteEvidence duplicate_vote_evidence = 1;
  23. MockEvidence mock_evidence = 2;
  24. }
  25. }
  26. // EvidenceData contains any evidence of malicious wrong-doing by validators
  27. message EvidenceData {
  28. repeated Evidence evidence = 1 [(gogoproto.nullable) = false];
  29. bytes hash = 2;
  30. }