hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
mst_propagation_strategy.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_MST_PROPAGATION_STRATEGY_HPP
7 #define IROHA_MST_PROPAGATION_STRATEGY_HPP
8 
9 #include <rxcpp/rx.hpp>
10 #include <vector>
12 
13 namespace iroha {
14 
19  public:
20  virtual ~PropagationStrategy() = default;
21  using PropagationData =
22  std::vector<std::shared_ptr<shared_model::interface::Peer>>;
23 
28  virtual rxcpp::observable<PropagationData> emitter() = 0;
29  };
30 } // namespace iroha
31 
32 #endif // IROHA_MST_PROPAGATION_STRATEGY_HPP
virtual ~PropagationStrategy()=default
std::vector< std::shared_ptr< shared_model::interface::Peer >> PropagationData
Definition: mst_propagation_strategy.hpp:22
Definition: mst_propagation_strategy.hpp:18
Definition: block_query.hpp:16
virtual rxcpp::observable< PropagationData > emitter()=0