github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/blocksync/types.proto (about)

     1  syntax = "proto3";
     2  package seitendermint.blocksync;
     3  
     4  option go_package = "github.com/ari-anchor/sei-tendermint/proto/tendermint/blocksync";
     5  
     6  import "tendermint/types/block.proto";
     7  import "tendermint/types/types.proto";
     8  
     9  // BlockRequest requests a block for a specific height
    10  message BlockRequest {
    11    int64 height = 1;
    12  }
    13  
    14  // NoBlockResponse informs the node that the peer does not have block at the
    15  // requested height
    16  message NoBlockResponse {
    17    int64 height = 1;
    18  }
    19  
    20  // BlockResponse returns block to the requested
    21  message BlockResponse {
    22    seitendermint.types.Block          block      = 1;
    23    seitendermint.types.ExtendedCommit ext_commit = 2;
    24  }
    25  
    26  // StatusRequest requests the status of a peer.
    27  message StatusRequest {}
    28  
    29  // StatusResponse is a peer response to inform their status.
    30  message StatusResponse {
    31    int64 height = 1;
    32    int64 base   = 2;
    33  }
    34  
    35  message Message {
    36    oneof sum {
    37      BlockRequest    block_request     = 1;
    38      NoBlockResponse no_block_response = 2;
    39      BlockResponse   block_response    = 3;
    40      StatusRequest   status_request    = 4;
    41      StatusResponse  status_response   = 5;
    42    }
    43  }