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:
29  virtual boost::optional<ClusterOrdering> getInitialOrdering() = 0;
30 
36  virtual boost::optional<ClusterOrdering> getOrdering(
37  const YacHash &hash) = 0;
38 
39  virtual ~YacPeerOrderer() = default;
40  };
41 
42  } // namespace yac
43  } // namespace consensus
44 } // namespace iroha
45 
46 #endif // IROHA_YAC_PEER_ORDERER_HPP
Definition: yac_hash_provider.hpp:30
Definition: block_query.hpp:16
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: yac_peer_orderer.hpp:22
virtual boost::optional< ClusterOrdering > getInitialOrdering()=0
virtual boost::optional< ClusterOrdering > getOrdering(const YacHash &hash)=0