hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
yac_peer_orderer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_YAC_PEER_ORDERER_HPP
7 #define IROHA_YAC_PEER_ORDERER_HPP
8 
9 #include <boost/optional.hpp>
10 
12 
13 namespace iroha {
14  namespace consensus {
15  namespace yac {
16 
17  class YacHash;
18 
23  public:
30  virtual boost::optional<ClusterOrdering> getOrdering(
31  const YacHash &hash,
32  std::vector<std::shared_ptr<shared_model::interface::Peer>>
33  peers) = 0;
34 
35  virtual ~YacPeerOrderer() = default;
36  };
37 
38  } // namespace yac
39  } // namespace consensus
40 } // namespace iroha
41 
42 #endif // IROHA_YAC_PEER_ORDERER_HPP
Definition: yac_hash_provider.hpp:30
Definition: block_query.hpp:14
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: yac_peer_orderer.hpp:22
virtual boost::optional< ClusterOrdering > getOrdering(const YacHash &hash, std::vector< std::shared_ptr< shared_model::interface::Peer >> peers)=0