6 #ifndef IROHA_ON_DEMAND_ORDERING_SERVICE_HPP 7 #define IROHA_ON_DEMAND_ORDERING_SERVICE_HPP 9 #include <unordered_set> 17 class TransactionBatch;
40 const std::shared_ptr<shared_model::interface::TransactionBatch> &a)
42 return hasher_(a->reducedHash());
47 std::shared_ptr<shared_model::interface::TransactionBatch>,
55 std::shared_ptr<shared_model::interface::TransactionBatch>;
68 virtual std::optional<std::shared_ptr<const ProposalType>>
91 virtual void forCachedBatches(
94 virtual bool isEmptyBatchesCache()
const = 0;
104 #endif // IROHA_ON_DEMAND_ORDERING_SERVICE_HPP
std::shared_ptr< shared_model::interface::TransactionBatch > TransactionBatchType
Definition: on_demand_ordering_service.hpp:55
Definition: transaction_batch.hpp:64
std::vector< TransactionBatchType > CollectionType
Definition: on_demand_ordering_service.hpp:60
Definition: on_demand_ordering_service.hpp:28
Definition: proposal.hpp:17
Definition: on_demand_ordering_service.hpp:37
std::unordered_set< shared_model::crypto::Hash, shared_model::crypto::Hash::Hasher > HashesSetType
Definition: on_demand_ordering_service.hpp:73
size_t operator()(const std::shared_ptr< shared_model::interface::TransactionBatch > &a) const
Definition: on_demand_ordering_service.hpp:39
Definition: block_query.hpp:15
std::unordered_set< std::shared_ptr< shared_model::interface::TransactionBatch >, BatchPointerHasher, shared_model::interface::BatchHashEquality > BatchesSetType
Definition: on_demand_ordering_service.hpp:49
shared_model::crypto::Hash::Hasher hasher_
Definition: on_demand_ordering_service.hpp:38
Definition: command_executor.hpp:13