github.com/badrootd/nibiru-cometbft@v0.37.5-0.20240307173500-2a75559eee9b/proto/tendermint/statesync/types.proto (about)

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