hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
on_demand_common.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_ON_DEMAND_COMMON_HPP
7 #define IROHA_ON_DEMAND_COMMON_HPP
8 
9 #include <memory>
10 #include <optional>
11 
12 #include "consensus/round.hpp"
13 
14 namespace shared_model::interface {
15  class Proposal;
16 }
17 
18 namespace iroha {
19  namespace ordering {
20 
22 
23  consensus::Round nextCommitRound(const consensus::Round &round);
24 
25  consensus::Round nextRejectRound(const consensus::Round &round);
26 
27  struct ProposalEvent {
28  std::optional<std::shared_ptr<const shared_model::interface::Proposal>>
31  };
32 
33  } // namespace ordering
34 } // namespace iroha
35 
36 #endif // IROHA_ON_DEMAND_COMMON_HPP
consensus::Round nextCommitRound(const consensus::Round &round)
Definition: on_demand_common.cpp:13
Definition: on_demand_common.hpp:27
Definition: block_query.hpp:15
const consensus::RejectRoundType kFirstRejectRound
Definition: on_demand_common.cpp:11
uint32_t RejectRoundType
Definition: round.hpp:26
consensus::Round nextRejectRound(const consensus::Round &round)
Definition: on_demand_common.cpp:17
Definition: command_executor.hpp:14
std::optional< std::shared_ptr< const shared_model::interface::Proposal > > proposal
Definition: on_demand_common.hpp:29
Definition: round.hpp:31
consensus::Round round
Definition: on_demand_common.hpp:30