hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
ordering_gate_common.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_ORDERING_GATE_COMMON_HPP
7 #define IROHA_ORDERING_GATE_COMMON_HPP
8 
9 #include <memory>
10 
11 #include <boost/optional.hpp>
12 #include "consensus/round.hpp"
13 
14 namespace shared_model {
15  namespace interface {
16  class Proposal;
17  } // namespace interface
18 } // namespace shared_model
19 
20 namespace iroha {
21  namespace network {
22 
26  struct OrderingEvent {
27  boost::optional<std::shared_ptr<shared_model::interface::Proposal>>
30  };
31 
32  std::shared_ptr<shared_model::interface::Proposal> getProposalUnsafe(
33  const OrderingEvent &event);
34 
35  } // namespace network
36 } // namespace iroha
37 
38 #endif // IROHA_ORDERING_GATE_COMMON_HPP
consensus::Round round
Definition: ordering_gate_common.hpp:29
boost::optional< std::shared_ptr< shared_model::interface::Proposal > > proposal
Definition: ordering_gate_common.hpp:28
Definition: block_query.hpp:16
Definition: ordering_gate_common.hpp:26
std::shared_ptr< shared_model::interface::Proposal > getProposalUnsafe(const OrderingEvent &event)
Definition: ordering_gate_common.cpp:11
Definition: round.hpp:31
Definition: command_executor.hpp:12