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 
13 
14 namespace shared_model {
15  namespace interface {
16  class Proposal;
17  class TransactionBatch;
18  } // namespace interface
19 } // namespace shared_model
20 
21 namespace iroha {
22  namespace network {
23 
27  class OrderingGate {
28  public:
33  virtual void propagateBatch(
34  std::shared_ptr<shared_model::interface::TransactionBatch> batch) = 0;
35 
36  virtual ~OrderingGate() = default;
37 
39  virtual void stop() = 0;
40  };
41  } // namespace network
42 } // namespace iroha
43 
44 #endif // IROHA_ORDERING_GATE_HPP
Definition: ordering_gate.hpp:27
Definition: block_query.hpp:15
Definition: command_executor.hpp:13