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.

49 lines
1.0 KiB

  1. syntax = "proto3";
  2. package tendermint.statesync;
  3. import "tendermint/types/types.proto";
  4. option go_package = "github.com/tendermint/tendermint/proto/tendermint/statesync";
  5. message Message {
  6. oneof sum {
  7. SnapshotsRequest snapshots_request = 1;
  8. SnapshotsResponse snapshots_response = 2;
  9. ChunkRequest chunk_request = 3;
  10. ChunkResponse chunk_response = 4;
  11. LightBlockRequest light_block_request = 5;
  12. LightBlockResponse light_block_response = 6;
  13. }
  14. }
  15. message SnapshotsRequest {}
  16. message SnapshotsResponse {
  17. uint64 height = 1;
  18. uint32 format = 2;
  19. uint32 chunks = 3;
  20. bytes hash = 4;
  21. bytes metadata = 5;
  22. }
  23. message ChunkRequest {
  24. uint64 height = 1;
  25. uint32 format = 2;
  26. uint32 index = 3;
  27. }
  28. message ChunkResponse {
  29. uint64 height = 1;
  30. uint32 format = 2;
  31. uint32 index = 3;
  32. bytes chunk = 4;
  33. bool missing = 5;
  34. }
  35. message LightBlockRequest {
  36. uint64 height = 1;
  37. }
  38. message LightBlockResponse {
  39. tendermint.types.LightBlock light_block = 1;
  40. }