hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
ordering_service_transport.hpp
Go to the documentation of this file.
1 
5 #ifndef IROHA_ORDERING_SERVICE_TRANSPORT_H
6 #define IROHA_ORDERING_SERVICE_TRANSPORT_H
7 
8 #include <memory>
11 
12 namespace iroha {
13  namespace network {
14 
20  public:
25  virtual void onBatch(
26  std::unique_ptr<shared_model::interface::TransactionBatch> batch) = 0;
27 
28  virtual ~OrderingServiceNotification() = default;
29  };
30 
37  public:
43  virtual void subscribe(
44  std::shared_ptr<OrderingServiceNotification> subscriber) = 0;
45 
50  virtual void publishProposal(
51  std::unique_ptr<shared_model::interface::Proposal> proposal,
52  const std::vector<std::string> &peers) = 0;
53 
54  virtual ~OrderingServiceTransport() = default;
55  };
56 
57  } // namespace network
58 } // namespace iroha
59 
60 #endif // IROHA_ORDERING_SERVICE_TRANSPORT_H
virtual void onBatch(std::unique_ptr< shared_model::interface::TransactionBatch > batch)=0
Definition: block_query.hpp:16
Definition: ordering_service_transport.hpp:36
Definition: ordering_service_transport.hpp:19