Skip to main content

iq_cometbft_proto/prost/v0_38/
tendermint.blocksync.rs

1// This file is @generated by prost-build.
2/// BlockRequest requests a block for a specific height
3#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct BlockRequest {
5    #[prost(int64, tag = "1")]
6    pub height: i64,
7}
8/// NoBlockResponse informs the node that the peer does not have block at the requested height
9#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
10pub struct NoBlockResponse {
11    #[prost(int64, tag = "1")]
12    pub height: i64,
13}
14/// BlockResponse returns block to the requested
15#[derive(Clone, PartialEq, ::prost::Message)]
16pub struct BlockResponse {
17    #[prost(message, optional, tag = "1")]
18    pub block: ::core::option::Option<super::types::Block>,
19    #[prost(message, optional, tag = "2")]
20    pub ext_commit: ::core::option::Option<super::types::ExtendedCommit>,
21}
22/// StatusRequest requests the status of a peer.
23#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
24pub struct StatusRequest {}
25/// StatusResponse is a peer response to inform their status.
26#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
27pub struct StatusResponse {
28    #[prost(int64, tag = "1")]
29    pub height: i64,
30    #[prost(int64, tag = "2")]
31    pub base: i64,
32}
33#[derive(Clone, PartialEq, ::prost::Message)]
34pub struct Message {
35    #[prost(oneof = "message::Sum", tags = "1, 2, 3, 4, 5")]
36    pub sum: ::core::option::Option<message::Sum>,
37}
38/// Nested message and enum types in `Message`.
39pub mod message {
40    #[derive(Clone, PartialEq, ::prost::Oneof)]
41    pub enum Sum {
42        #[prost(message, tag = "1")]
43        BlockRequest(super::BlockRequest),
44        #[prost(message, tag = "2")]
45        NoBlockResponse(super::NoBlockResponse),
46        #[prost(message, tag = "3")]
47        BlockResponse(super::BlockResponse),
48        #[prost(message, tag = "4")]
49        StatusRequest(super::StatusRequest),
50        #[prost(message, tag = "5")]
51        StatusResponse(super::StatusResponse),
52    }
53}