hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
ordering_gate.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_ORDERING_GATE_HPP
7 #define IROHA_ORDERING_GATE_HPP
8 
9 #include <memory>
10 
11 #include <rxcpp/rx.hpp>
14 
15 namespace shared_model {
16  namespace interface {
17  class Proposal;
18  class TransactionBatch;
19  } // namespace interface
20 } // namespace shared_model
21 
22 namespace iroha {
23  namespace network {
24 
28  class OrderingGate {
29  public:
34  virtual void propagateBatch(
35  std::shared_ptr<shared_model::interface::TransactionBatch> batch) = 0;
36 
41  virtual rxcpp::observable<OrderingEvent> onProposal() = 0;
42 
43  virtual ~OrderingGate() = default;
44  };
45  } // namespace network
46 } // namespace iroha
47 
48 #endif // IROHA_ORDERING_GATE_HPP
Definition: ordering_gate.hpp:28
Definition: block_query.hpp:14
Definition: command_executor.hpp:12