hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
peer_orderer_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PEER_ORDERER_IMPL_HPP
7 #define IROHA_PEER_ORDERER_IMPL_HPP
8 
9 #include <memory>
10 
12 
13 namespace iroha::consensus::yac {
14  class ClusterOrdering;
15  class YacHash;
16 
18  public:
19  std::optional<ClusterOrdering> getOrdering(
20  const YacHash &hash,
21  std::vector<std::shared_ptr<shared_model::interface::Peer>> const
22  &peers) override;
23 
24  private:
25  std::vector<size_t> peer_positions_;
26  };
27 } // namespace iroha::consensus::yac
28 
29 #endif // IROHA_PEER_ORDERER_IMPL_HPP
Definition: yac_hash_provider.hpp:25
Definition: peer_orderer_impl.hpp:17
std::optional< ClusterOrdering > getOrdering(const YacHash &hash, std::vector< std::shared_ptr< shared_model::interface::Peer >> const &peers) override
Definition: peer_orderer_impl.cpp:19
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: yac_peer_orderer.hpp:19
Definition: cluster_order.hpp:16