6 #ifndef IROHA_MST_PROPAGATOR_HPP 7 #define IROHA_MST_PROPAGATOR_HPP 12 #include <rxcpp/rx-observable-fwd.hpp> 43 rxcpp::observable<std::shared_ptr<MstState>>
onStateUpdate()
const;
69 virtual auto propagateBatchImpl(
const DataType &batch)
75 virtual auto onStateUpdateImpl() const -> decltype(onStateUpdate()) = 0;
80 virtual auto onPreparedBatchesImpl() const
81 -> decltype(onPreparedBatches()) = 0;
86 virtual auto onExpiredBatchesImpl() const
87 -> decltype(onExpiredBatches()) = 0;
92 virtual
bool batchInStorageImpl(const
DataType &batch) const = 0;
96 #endif // IROHA_MST_PROPAGATOR_HPP rxcpp::observable< DataType > onPreparedBatches() const
Definition: mst_processor.cpp:23
rxcpp::observable< DataType > onExpiredBatches() const
Definition: mst_processor.cpp:27
MstProcessor(logger::LoggerPtr log)
Definition: mst_processor.cpp:12
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
rxcpp::observable< std::shared_ptr< MstState > > onStateUpdate() const
Definition: mst_processor.cpp:18
Definition: block_query.hpp:15
void propagateBatch(const DataType &batch)
Definition: mst_processor.cpp:14
Definition: mst_processor.hpp:22
virtual ~MstProcessor()=default
logger::LoggerPtr log_
Definition: mst_processor.hpp:61
BatchPtr DataType
Definition: mst_types.hpp:41
bool batchInStorage(const DataType &batch) const
Definition: mst_processor.cpp:31