18 #ifndef IROHA_YAC_BLOCK_VOTE_STORAGE_HPP 19 #define IROHA_YAC_BLOCK_VOTE_STORAGE_HPP 24 #include <boost/optional.hpp> 44 std::vector<VoteMessage> votes_;
50 std::shared_ptr<SupermajorityChecker> supermajority_checker =
51 std::make_shared<SupermajorityCheckerImpl>());
67 boost::optional<Answer>
insert(std::vector<VoteMessage> votes);
72 std::vector<VoteMessage>
getVotes()
const;
128 std::shared_ptr<SupermajorityChecker> supermajority_checker_;
139 #endif // IROHA_YAC_BLOCK_VOTE_STORAGE_HPP size_t getNumberOfVotes() const
Definition: yac_block_storage.cpp:54
Definition: yac_hash_provider.hpp:30
std::shared_ptr< spdlog::logger > Logger
Definition: logger.hpp:26
YacHash getStorageKey() const
Definition: yac_block_storage.cpp:71
Definition: block_query.hpp:16
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
boost::optional< Answer > getState()
Definition: yac_block_storage.cpp:58
size_t PeersNumberType
Type for number of peers in round.
Definition: yac_types.hpp:16
std::vector< VoteMessage > getVotes() const
Definition: yac_block_storage.cpp:50
Definition: vote_message.hpp:22
YacBlockStorage(YacHash hash, PeersNumberType peers_in_round, std::shared_ptr< SupermajorityChecker > supermajority_checker=std::make_shared< SupermajorityCheckerImpl >())
Definition: yac_block_storage.cpp:16
boost::optional< Answer > insert(VoteMessage msg)
Definition: yac_block_storage.cpp:26
bool isContains(const VoteMessage &msg) const
Definition: yac_block_storage.cpp:67
Definition: yac_block_storage.hpp:37