6 #ifndef IROHA_YAC_BLOCK_VOTE_STORAGE_HPP 7 #define IROHA_YAC_BLOCK_VOTE_STORAGE_HPP 12 #include <boost/optional.hpp> 30 std::vector<VoteMessage> votes_;
35 std::shared_ptr<SupermajorityChecker> supermajority_checker,
52 boost::optional<Answer>
insert(std::vector<VoteMessage> votes);
57 std::vector<VoteMessage>
getVotes()
const;
113 std::shared_ptr<SupermajorityChecker> supermajority_checker_;
122 #endif // IROHA_YAC_BLOCK_VOTE_STORAGE_HPP Definition: yac_hash_provider.hpp:25
boost::optional< Answer > insert(VoteMessage msg)
Definition: yac_block_storage.cpp:24
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
std::vector< VoteMessage > getVotes() const
Definition: yac_block_storage.cpp:49
boost::optional< Answer > getState()
Definition: yac_block_storage.cpp:58
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
YacBlockStorage(YacHash hash, PeersNumberType peers_in_round, std::shared_ptr< SupermajorityChecker > supermajority_checker, logger::LoggerPtr log)
Definition: yac_block_storage.cpp:14
size_t getNumberOfVotes() const
Definition: yac_block_storage.cpp:54
size_t PeersNumberType
Type for number of peers in round.
Definition: yac_types.hpp:13
YacHash getStorageKey() const
Definition: yac_block_storage.cpp:71
Definition: vote_message.hpp:20
bool isContains(const VoteMessage &msg) const
Definition: yac_block_storage.cpp:67
Definition: yac_block_storage.hpp:23
Definition: cluster_order.hpp:16