6 #ifndef IROHA_BUFFERED_CLEANUP_STRATEGY_HPP 7 #define IROHA_BUFFERED_CLEANUP_STRATEGY_HPP 11 #include <boost/optional.hpp> 28 boost::optional<CleanupStrategy::RoundsType>
finalize(
45 boost::optional<RoundType> minimalRound()
const;
51 void createRound(
const Round &round);
58 bool isRequiredCreation(
const Round &round)
const;
62 std::vector<RoundType>,
63 std::greater<RoundType>>
67 boost::optional<RoundType> last_reject_round_;
69 boost::optional<RoundType> last_commit_round_;
73 #endif // IROHA_BUFFERED_CLEANUP_STRATEGY_HPP Round RoundType
Definition: buffered_cleanup_strategy.hpp:19
Definition: cleanup_strategy.hpp:17
bool shouldCreateRound(const RoundType &round) override
Definition: buffered_cleanup_strategy.cpp:68
boost::optional< CleanupStrategy::RoundsType > finalize(RoundType consensus_round, Answer answer) override
Definition: buffered_cleanup_strategy.cpp:13
std::vector< Round > RoundsType
Definition: cleanup_strategy.hpp:22
Definition: buffered_cleanup_strategy.hpp:17
boost::variant< CommitMessage, RejectMessage, FutureMessage > Answer
Definition: storage_result.hpp:19
Definition: cluster_order.hpp:16