hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
validators_common.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_VALIDATORS_COMMON_HPP
7 #define IROHA_VALIDATORS_COMMON_HPP
8 
9 #include <memory>
10 #include <string>
11 #include "validators/settings.hpp"
12 
13 namespace shared_model {
14  namespace validation {
21  uint64_t max_batch_size,
22  std::shared_ptr<const Settings> settings = getDefaultSettings(),
24  bool txs_duplicates_allowed = false);
25 
27  const uint64_t max_batch_size;
28 
32 
34  const std::shared_ptr<const Settings> settings;
35 
44  };
45 
51  bool validateHexString(const std::string &str);
52 
53  } // namespace validation
54 } // namespace shared_model
55 
56 #endif // IROHA_VALIDATORS_COMMON_HPP
ValidatorsConfig(uint64_t max_batch_size, std::shared_ptr< const Settings > settings=getDefaultSettings(), bool partial_ordered_batches_are_valid=false, bool txs_duplicates_allowed=false)
Definition: validators_common.cpp:13
const bool partial_ordered_batches_are_valid
Definition: validators_common.hpp:31
const uint64_t max_batch_size
Maximum allowed amount of transactions within a batch.
Definition: validators_common.hpp:27
const std::shared_ptr< const Settings > settings
Settings.
Definition: validators_common.hpp:34
Definition: validators_common.hpp:19
const bool txs_duplicates_allowed
Definition: validators_common.hpp:43
bool validateHexString(const std::string &str)
Definition: validators_common.cpp:22
Definition: command_executor.hpp:12
std::unique_ptr< shared_model::validation::Settings > getDefaultSettings()
Definition: settings.cpp:12