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.

41 lines
986 B

  1. syntax = "proto3";
  2. package tendermint.blocksync;
  3. option go_package = "github.com/tendermint/tendermint/proto/tendermint/blocksync";
  4. import "tendermint/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.types.Block block = 1;
  16. }
  17. // StatusRequest requests the status of a peer.
  18. message StatusRequest {
  19. }
  20. // StatusResponse is a peer response to inform their status.
  21. message StatusResponse {
  22. int64 height = 1;
  23. int64 base = 2;
  24. }
  25. message Message {
  26. oneof sum {
  27. BlockRequest block_request = 1;
  28. NoBlockResponse no_block_response = 2;
  29. BlockResponse block_response = 3;
  30. StatusRequest status_request = 4;
  31. StatusResponse status_response = 5;
  32. }
  33. }