github.com/vipernet-xyz/tm@v0.34.24/proto/tendermint/blockchain/types.proto (about)

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