hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha_conf_loader.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_CONF_LOADER_HPP
7 #define IROHA_CONF_LOADER_HPP
8 
9 #include <string>
10 #include <unordered_map>
11 
15 
16 struct IrohadConfig {
17  std::string block_store_path;
18  uint16_t torii_port;
19  uint16_t internal_port;
20  std::string pg_opt;
22  uint32_t proposal_delay;
23  uint32_t vote_delay;
25  boost::optional<uint32_t> mst_expiration_time;
26  boost::optional<uint32_t> max_round_delay_ms;
27  boost::optional<uint32_t> stale_stream_max_rounds;
28  boost::optional<logger::LoggerManagerTreePtr> logger_manager;
29  boost::optional<shared_model::interface::types::PeerList> initial_peers;
30 };
31 
38  const std::string &conf_path,
39  std::shared_ptr<shared_model::interface::CommonObjectsFactory>
40  common_objects_factory);
41 
42 #endif // IROHA_CONF_LOADER_HPP
boost::optional< uint32_t > max_round_delay_ms
Definition: iroha_conf_loader.hpp:26
IrohadConfig parse_iroha_config(const std::string &conf_path, std::shared_ptr< shared_model::interface::CommonObjectsFactory > common_objects_factory)
Definition: iroha_conf_loader.cpp:394
boost::optional< uint32_t > stale_stream_max_rounds
Definition: iroha_conf_loader.hpp:27
uint32_t proposal_delay
Definition: iroha_conf_loader.hpp:22
Definition: iroha_conf_loader.hpp:16
uint16_t internal_port
Definition: iroha_conf_loader.hpp:19
uint32_t max_proposal_size
Definition: iroha_conf_loader.hpp:21
boost::optional< shared_model::interface::types::PeerList > initial_peers
Definition: iroha_conf_loader.hpp:29
std::string block_store_path
Definition: iroha_conf_loader.hpp:17
boost::optional< uint32_t > mst_expiration_time
Definition: iroha_conf_loader.hpp:25
bool mst_support
Definition: iroha_conf_loader.hpp:24
std::string pg_opt
Definition: iroha_conf_loader.hpp:20
uint32_t vote_delay
Definition: iroha_conf_loader.hpp:23
boost::optional< logger::LoggerManagerTreePtr > logger_manager
Definition: iroha_conf_loader.hpp:28
uint16_t torii_port
Definition: iroha_conf_loader.hpp:18