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.

37 lines
746 B

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