hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transaction_batch_validator.hpp
Go to the documentation of this file.
1 
5 #ifndef IROHA_TRANSACTION_BATCH_VALIDATOR_HPP
6 #define IROHA_TRANSACTION_BATCH_VALIDATOR_HPP
7 
11 
12 namespace shared_model {
13  namespace validation {
14 
16  : public AbstractValidator<interface::TransactionBatch> {
17  public:
18  BatchValidator(std::shared_ptr<ValidatorsConfig> config);
19 
20  Answer validate(const interface::TransactionBatch &batch) const override;
21 
22  private:
24  transactions) const;
25 
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_TRANSACTION_BATCH_VALIDATOR_HPP
boost::any_range< Transaction, boost::forward_traversal_tag, const Transaction & > TransactionsForwardCollectionType
Definition: transaction_sequence_common.hpp:25
Definition: abstract_validator.hpp:16
Definition: transaction_batch_validator.hpp:15
Answer validate(const interface::TransactionBatch &batch) const override
Definition: transaction_batch_validator.cpp:94
Definition: transaction_batch.hpp:22
Definition: command_executor.hpp:12
Definition: answer.hpp:28
BatchValidator(std::shared_ptr< ValidatorsConfig > config)
Definition: transaction_batch_validator.cpp:89