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.4 KiB

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