hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha_conf_loader.hpp File Reference
#include <fstream>
#include <string>
#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
#include <rapidjson/istreamwrapper.h>
#include <rapidjson/rapidjson.h>
#include "main/assert_config.hpp"
Include dependency graph for iroha_conf_loader.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 config_members
 

Functions

std::string reportJsonParsingError (const rapidjson::Document &doc, const std::string &conf_path, std::istream &input)
 
rapidjson::Document parse_iroha_config (const std::string &conf_path)
 

Variables

const char * config_members::BlockStorePath = "block_store_path"
 
const char * config_members::ToriiPort = "torii_port"
 
const char * config_members::InternalPort = "internal_port"
 
const char * config_members::KeyPairPath = "key_pair_path"
 
const char * config_members::PgOpt = "pg_opt"
 
const char * config_members::MaxProposalSize = "max_proposal_size"
 
const char * config_members::ProposalDelay = "proposal_delay"
 
const char * config_members::VoteDelay = "vote_delay"
 
const char * config_members::MstSupport = "mst_enable"
 
const char * config_members::MstExpirationTime = "mst_expiration_time"
 
static constexpr size_t kBadJsonPrintLength = 15
 
static constexpr size_t kBadJsonPrintOffsset = 5
 

Function Documentation

rapidjson::Document parse_iroha_config ( const std::string conf_path)
inline

parse and assert trusted peers json in iroha.conf

Parameters
conf_pathis a path to iroha's config
Returns
rapidjson::Document is a parsed equivalent of that file

Here is the call graph for this function:

Here is the caller graph for this function:

std::string reportJsonParsingError ( const rapidjson::Document &  doc,
const std::string conf_path,
std::istream &  input 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

constexpr size_t kBadJsonPrintLength = 15
static
constexpr size_t kBadJsonPrintOffsset = 5
static