6 #ifndef IROHA_BUFFERED_CLEANUP_STRATEGY_HPP 7 #define IROHA_BUFFERED_CLEANUP_STRATEGY_HPP 11 #include <boost/optional.hpp> 30 boost::optional<CleanupStrategy::RoundsType>
finalize(
47 boost::optional<RoundType> minimalRound()
const;
53 void createRound(
const Round &round);
60 bool isRequiredCreation(
const Round &round)
const;
64 std::vector<RoundType>,
65 std::greater<RoundType>>
69 boost::optional<RoundType> last_reject_round_;
71 boost::optional<RoundType> last_commit_round_;
77 #endif // IROHA_BUFFERED_CLEANUP_STRATEGY_HPP Round RoundType
Definition: buffered_cleanup_strategy.hpp:21
Definition: block_query.hpp:15
Definition: cleanup_strategy.hpp:19
bool shouldCreateRound(const RoundType &round) override
Definition: buffered_cleanup_strategy.cpp:68
std::vector< Round > RoundsType
Definition: cleanup_strategy.hpp:24
Definition: buffered_cleanup_strategy.hpp:19
boost::variant< CommitMessage, RejectMessage, FutureMessage > Answer
Definition: storage_result.hpp:23
boost::optional< CleanupStrategy::RoundsType > finalize(RoundType consensus_round, Answer answer) override
Definition: buffered_cleanup_strategy.cpp:13