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.

55 lines
1.6 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. syntax = "proto3";
  2. package tendermint.types.proto3;
  3. option go_package = "github.com/tendermint/tendermint/types/proto3";
  4. message PartSetHeader {
  5. int32 Total = 1;
  6. bytes Hash = 2;
  7. }
  8. message BlockID {
  9. bytes Hash = 1;
  10. PartSetHeader PartsHeader = 2;
  11. }
  12. message Header {
  13. // basic block info
  14. Version Version = 1;
  15. string ChainID = 2;
  16. int64 Height = 3;
  17. Timestamp Time = 4;
  18. // prev block info
  19. BlockID LastBlockID = 5;
  20. // hashes of block data
  21. bytes LastCommitHash = 6; // commit from validators from the last block
  22. bytes DataHash = 7; // transactions
  23. // hashes from the app output from the prev block
  24. bytes ValidatorsHash = 8; // validators for the current block
  25. bytes NextValidatorsHash = 9; // validators for the next block
  26. bytes ConsensusHash = 10; // consensus params for current block
  27. bytes AppHash = 11; // state after txs from the previous block
  28. bytes LastResultsHash = 12; // root hash of all results from the txs from the previous block
  29. // consensus info
  30. bytes EvidenceHash = 13; // evidence included in the block
  31. bytes ProposerAddress = 14; // original proposer of the block
  32. }
  33. message Version {
  34. uint64 Block = 1;
  35. uint64 App = 2;
  36. }
  37. // Timestamp wraps how amino encodes time.
  38. // This is the protobuf well-known type protobuf/timestamp.proto
  39. // See:
  40. // https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135
  41. // NOTE/XXX: nanos do not get skipped if they are zero in amino.
  42. message Timestamp {
  43. int64 seconds = 1;
  44. int32 nanos = 2;
  45. }