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 <optional>
10 
12 
13 namespace iroha::consensus::yac {
14  class YacHash;
15 
20  public:
27  virtual std::optional<ClusterOrdering> getOrdering(
28  const YacHash &hash,
29  std::vector<std::shared_ptr<shared_model::interface::Peer>> const
30  &peers) = 0;
31 
32  virtual ~YacPeerOrderer() = default;
33  };
34 } // namespace iroha::consensus::yac
35 
36 #endif // IROHA_YAC_PEER_ORDERER_HPP
Definition: yac_hash_provider.hpp:25
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: yac_peer_orderer.hpp:19
virtual std::optional< ClusterOrdering > getOrdering(const YacHash &hash, std::vector< std::shared_ptr< shared_model::interface::Peer >> const &peers)=0
Definition: cluster_order.hpp:16