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