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.

44 lines
1.1 KiB

  1. syntax = "proto3";
  2. package tendermint.proto.blockchain;
  3. option go_package = "github.com/tendermint/tendermint/proto/blockchain";
  4. import "third_party/proto/gogoproto/gogo.proto";
  5. import "proto/types/block.proto";
  6. // BlockRequest requests a block for a specific height
  7. message BlockRequest {
  8. int64 height = 1;
  9. }
  10. // NoBlockResponse informs the node that the peer does not have block at the requested height
  11. message NoBlockResponse {
  12. int64 height = 1;
  13. }
  14. // BlockResponse returns block to the requested
  15. message BlockResponse {
  16. tendermint.proto.types.Block block = 1 [(gogoproto.nullable) = false];
  17. }
  18. // StatusRequest requests the status of a node (Height & Base)
  19. message StatusRequest {
  20. int64 height = 1;
  21. int64 base = 2;
  22. }
  23. // StatusResponse is a peer response to infrom their status
  24. message StatusResponse {
  25. int64 height = 1;
  26. int64 base = 2;
  27. }
  28. message Message {
  29. oneof sum {
  30. BlockRequest block_request = 1;
  31. NoBlockResponse no_block_response = 2;
  32. BlockResponse block_response = 3;
  33. StatusRequest status_request = 4;
  34. StatusResponse status_response = 5;
  35. }
  36. }