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.

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