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 
13 
14 struct IrohadConfig {
15  std::string block_store_path;
16  uint16_t torii_port;
17  uint16_t internal_port;
18  std::string pg_opt;
20  uint32_t proposal_delay;
21  uint32_t vote_delay;
23  boost::optional<uint32_t> mst_expiration_time;
24  boost::optional<uint32_t> max_round_delay_ms;
25  boost::optional<uint32_t> stale_stream_max_rounds;
26  boost::optional<logger::LoggerManagerTreePtr> logger_manager;
27 };
28 
34 IrohadConfig parse_iroha_config(const std::string &conf_path);
35 
36 #endif // IROHA_CONF_LOADER_HPP
boost::optional< uint32_t > max_round_delay_ms
Definition: iroha_conf_loader.hpp:24
IrohadConfig parse_iroha_config(const std::string &conf_path)
Definition: iroha_conf_loader.cpp:331
boost::optional< uint32_t > stale_stream_max_rounds
Definition: iroha_conf_loader.hpp:25
uint32_t proposal_delay
Definition: iroha_conf_loader.hpp:20
Definition: iroha_conf_loader.hpp:14
uint16_t internal_port
Definition: iroha_conf_loader.hpp:17
uint32_t max_proposal_size
Definition: iroha_conf_loader.hpp:19
std::string block_store_path
Definition: iroha_conf_loader.hpp:15
boost::optional< uint32_t > mst_expiration_time
Definition: iroha_conf_loader.hpp:23
bool mst_support
Definition: iroha_conf_loader.hpp:22
std::string pg_opt
Definition: iroha_conf_loader.hpp:18
uint32_t vote_delay
Definition: iroha_conf_loader.hpp:21
boost::optional< logger::LoggerManagerTreePtr > logger_manager
Definition: iroha_conf_loader.hpp:26
uint16_t torii_port
Definition: iroha_conf_loader.hpp:16