6 #ifndef IROHA_YAC_BLOCK_VOTE_STORAGE_HPP 7 #define IROHA_YAC_BLOCK_VOTE_STORAGE_HPP 12 #include <boost/optional.hpp> 32 std::vector<VoteMessage> votes_;
38 std::shared_ptr<SupermajorityChecker> supermajority_checker,
55 boost::optional<Answer>
insert(std::vector<VoteMessage> votes);
60 std::vector<VoteMessage>
getVotes()
const;
116 std::shared_ptr<SupermajorityChecker> supermajority_checker_;
127 #endif // IROHA_YAC_BLOCK_VOTE_STORAGE_HPP YacBlockStorage(YacHash hash, PeersNumberType peers_in_round, std::shared_ptr< SupermajorityChecker > supermajority_checker, logger::LoggerPtr log)
Definition: yac_block_storage.cpp:16
Definition: yac_hash_provider.hpp:30
size_t getNumberOfVotes() const
Definition: yac_block_storage.cpp:54
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
std::vector< VoteMessage > getVotes() const
Definition: yac_block_storage.cpp:50
Definition: block_query.hpp:15
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
boost::optional< Answer > getState()
Definition: yac_block_storage.cpp:58
bool isContains(const VoteMessage &msg) const
Definition: yac_block_storage.cpp:67
size_t PeersNumberType
Type for number of peers in round.
Definition: yac_types.hpp:16
Definition: vote_message.hpp:22
boost::optional< Answer > insert(VoteMessage msg)
Definition: yac_block_storage.cpp:26
YacHash getStorageKey() const
Definition: yac_block_storage.cpp:71
Definition: yac_block_storage.hpp:25