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
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/// NewRoundStep is sent for every step taken in the ConsensusState.
/// For every height/round/step transition
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NewRoundStep {
    #[prost(int64, tag="1")]
    pub height: i64,
    #[prost(int32, tag="2")]
    pub round: i32,
    #[prost(uint32, tag="3")]
    pub step: u32,
    #[prost(int64, tag="4")]
    pub seconds_since_start_time: i64,
    #[prost(int32, tag="5")]
    pub last_commit_round: i32,
}
/// NewValidBlock is sent when a validator observes a valid block B in some round r,
///i.e., there is a Proposal for block B and 2/3+ prevotes for the block B in the round r.
/// In case the block is also committed, then IsCommit flag is set to true.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NewValidBlock {
    #[prost(int64, tag="1")]
    pub height: i64,
    #[prost(int32, tag="2")]
    pub round: i32,
    #[prost(message, optional, tag="3")]
    pub block_part_set_header: ::std::option::Option<super::types::PartSetHeader>,
    #[prost(message, optional, tag="4")]
    pub block_parts: ::std::option::Option<super::libs::bits::BitArray>,
    #[prost(bool, tag="5")]
    pub is_commit: bool,
}
/// Proposal is sent when a new block is proposed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Proposal {
    #[prost(message, optional, tag="1")]
    pub proposal: ::std::option::Option<super::types::Proposal>,
}
/// ProposalPOL is sent when a previous proposal is re-proposed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProposalPol {
    #[prost(int64, tag="1")]
    pub height: i64,
    #[prost(int32, tag="2")]
    pub proposal_pol_round: i32,
    #[prost(message, optional, tag="3")]
    pub proposal_pol: ::std::option::Option<super::libs::bits::BitArray>,
}
/// BlockPart is sent when gossipping a piece of the proposed block.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockPart {
    #[prost(int64, tag="1")]
    pub height: i64,
    #[prost(int32, tag="2")]
    pub round: i32,
    #[prost(message, optional, tag="3")]
    pub part: ::std::option::Option<super::types::Part>,
}
/// Vote is sent when voting for a proposal (or lack thereof).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Vote {
    #[prost(message, optional, tag="1")]
    pub vote: ::std::option::Option<super::types::Vote>,
}
/// HasVote is sent to indicate that a particular vote has been received.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HasVote {
    #[prost(int64, tag="1")]
    pub height: i64,
    #[prost(int32, tag="2")]
    pub round: i32,
    #[prost(enumeration="super::types::SignedMsgType", tag="3")]
    pub r#type: i32,
    #[prost(int32, tag="4")]
    pub index: i32,
}
/// VoteSetMaj23 is sent to indicate that a given BlockID has seen +2/3 votes.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VoteSetMaj23 {
    #[prost(int64, tag="1")]
    pub height: i64,
    #[prost(int32, tag="2")]
    pub round: i32,
    #[prost(enumeration="super::types::SignedMsgType", tag="3")]
    pub r#type: i32,
    #[prost(message, optional, tag="4")]
    pub block_id: ::std::option::Option<super::types::BlockId>,
}
/// VoteSetBits is sent to communicate the bit-array of votes seen for the BlockID.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VoteSetBits {
    #[prost(int64, tag="1")]
    pub height: i64,
    #[prost(int32, tag="2")]
    pub round: i32,
    #[prost(enumeration="super::types::SignedMsgType", tag="3")]
    pub r#type: i32,
    #[prost(message, optional, tag="4")]
    pub block_id: ::std::option::Option<super::types::BlockId>,
    #[prost(message, optional, tag="5")]
    pub votes: ::std::option::Option<super::libs::bits::BitArray>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Message {
    #[prost(oneof="message::Sum", tags="1, 2, 3, 4, 5, 6, 7, 8, 9")]
    pub sum: ::std::option::Option<message::Sum>,
}
pub mod message {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Sum {
        #[prost(message, tag="1")]
        NewRoundStep(super::NewRoundStep),
        #[prost(message, tag="2")]
        NewValidBlock(super::NewValidBlock),
        #[prost(message, tag="3")]
        Proposal(super::Proposal),
        #[prost(message, tag="4")]
        ProposalPol(super::ProposalPol),
        #[prost(message, tag="5")]
        BlockPart(super::BlockPart),
        #[prost(message, tag="6")]
        Vote(super::Vote),
        #[prost(message, tag="7")]
        HasVote(super::HasVote),
        #[prost(message, tag="8")]
        VoteSetMaj23(super::VoteSetMaj23),
        #[prost(message, tag="9")]
        VoteSetBits(super::VoteSetBits),
    }
}
/// MsgInfo are msgs from the reactor which may update the state
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgInfo {
    #[prost(message, optional, tag="1")]
    pub msg: ::std::option::Option<Message>,
    #[prost(string, tag="2")]
    pub peer_id: std::string::String,
}
/// TimeoutInfo internally generated messages which may update the state
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeoutInfo {
    #[prost(message, optional, tag="1")]
    pub duration: ::std::option::Option<super::super::google::protobuf::Duration>,
    #[prost(int64, tag="2")]
    pub height: i64,
    #[prost(int32, tag="3")]
    pub round: i32,
    #[prost(uint32, tag="4")]
    pub step: u32,
}
/// EndHeight marks the end of the given height inside WAL.
/// @internal used by scripts/wal2json util.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EndHeight {
    #[prost(int64, tag="1")]
    pub height: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WalMessage {
    #[prost(oneof="wal_message::Sum", tags="1, 2, 3, 4")]
    pub sum: ::std::option::Option<wal_message::Sum>,
}
pub mod wal_message {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Sum {
        #[prost(message, tag="1")]
        EventDataRoundState(super::super::types::EventDataRoundState),
        #[prost(message, tag="2")]
        MsgInfo(super::MsgInfo),
        #[prost(message, tag="3")]
        TimeoutInfo(super::TimeoutInfo),
        #[prost(message, tag="4")]
        EndHeight(super::EndHeight),
    }
}
/// TimedWALMessage wraps WALMessage and adds Time for debugging purposes.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimedWalMessage {
    #[prost(message, optional, tag="1")]
    pub time: ::std::option::Option<super::super::google::protobuf::Timestamp>,
    #[prost(message, optional, tag="2")]
    pub msg: ::std::option::Option<WalMessage>,
}