hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
yac_common.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_YAC_COMMON_HPP
7 #define IROHA_YAC_COMMON_HPP
8 
9 #include <vector>
10 
11 #include <boost/optional.hpp>
12 
13 #include "consensus/round.hpp"
14 
15 namespace iroha::consensus::yac {
16  class YacHash;
17  struct VoteMessage;
18 
19  using ProposalHash = std::string;
20 
21  using BlockHash = std::string;
22 
28  bool sameKeys(const std::vector<VoteMessage> &votes);
29 
36  boost::optional<Round> getKey(const std::vector<VoteMessage> &votes);
37 
44  boost::optional<YacHash> getHash(const std::vector<VoteMessage> &votes);
45 
46 } // namespace iroha::consensus::yac
47 
48 #endif // IROHA_YAC_COMMON_HPP
boost::optional< Round > getKey(const std::vector< VoteMessage > &votes)
Definition: yac_common.cpp:25
std::string ProposalHash
Definition: yac_common.hpp:19
bool sameKeys(const std::vector< VoteMessage > &votes)
Definition: yac_common.cpp:14
std::string BlockHash
Definition: yac_common.hpp:21
boost::optional< YacHash > getHash(const std::vector< VoteMessage > &votes)
Definition: yac_common.cpp:33
Definition: cluster_order.hpp:16