hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
batch_order_validator.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_BATCH_ORDER_VALIDATOR_HPP
7 #define IROHA_BATCH_ORDER_VALIDATOR_HPP
8 
9 #include <optional>
12 
13 namespace shared_model {
14  namespace validation {
15  struct ValidationError;
16 
18  public:
19  BatchOrderValidator(std::shared_ptr<ValidatorsConfig> config);
20 
21  std::optional<ValidationError> validate(
23  &transactions) const;
24 
25  private:
26  const uint64_t max_batch_size_;
27  const bool partial_ordered_batches_are_valid_;
28  };
29  } // namespace validation
30 } // namespace shared_model
31 
32 #endif // IROHA_ORDER_VALIDATOR_HPP
boost::any_range< Transaction, boost::forward_traversal_tag, const Transaction & > TransactionsForwardCollectionType
Definition: transaction_sequence_common.hpp:25
Definition: batch_order_validator.hpp:17
BatchOrderValidator(std::shared_ptr< ValidatorsConfig > config)
Definition: batch_order_validator.cpp:20
Definition: command_executor.hpp:13
std::optional< ValidationError > validate(const interface::types::TransactionsForwardCollectionType &transactions) const
Definition: batch_order_validator.cpp:26