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.

43 lines
1.0 KiB

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