Bitcoin Core 28.99.0
P2P Digital Currency
Functions
config.cpp File Reference
#include <common/args.h>
#include <common/settings.h>
#include <logging.h>
#include <sync.h>
#include <tinyformat.h>
#include <univalue.h>
#include <util/chaintype.h>
#include <util/fs.h>
#include <util/string.h>
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
Include dependency graph for config.cpp:

Go to the source code of this file.

Functions

static bool GetConfigOptions (std::istream &stream, const std::string &filepath, std::string &error, std::vector< std::pair< std::string, std::string > > &options, std::list< SectionInfo > &sections)
 
bool IsConfSupported (KeyInfo &key, std::string &error)
 
fs::path AbsPathForConfigVal (const ArgsManager &args, const fs::path &path, bool net_specific)
 Most paths passed as configuration arguments are treated as relative to the datadir if they are not absolute. More...
 

Function Documentation

◆ AbsPathForConfigVal()

fs::path AbsPathForConfigVal ( const ArgsManager args,
const fs::path path,
bool  net_specific = true 
)

Most paths passed as configuration arguments are treated as relative to the datadir if they are not absolute.

Parameters
argsParsed arguments and settings.
pathThe path to be conditionally prefixed with datadir.
net_specificUse network specific datadir variant
Returns
The normalized path.

Definition at line 226 of file config.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetConfigOptions()

static bool GetConfigOptions ( std::istream &  stream,
const std::string &  filepath,
std::string &  error,
std::vector< std::pair< std::string, std::string > > &  options,
std::list< SectionInfo > &  sections 
)
static

Definition at line 34 of file config.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsConfSupported()

bool IsConfSupported ( KeyInfo key,
std::string &  error 
)

Definition at line 79 of file config.cpp.

Here is the caller graph for this function: