mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
util: Add ArgsManager SetConfigFilePath method
Needed by multiprocess support code to pass parsed configuration to a spawned process.
This commit is contained in:
parent
441d00c60f
commit
8062c3bdb9
2 changed files with 8 additions and 0 deletions
|
@ -720,6 +720,13 @@ fs::path ArgsManager::GetConfigFilePath() const
|
|||
return *Assert(m_config_path);
|
||||
}
|
||||
|
||||
void ArgsManager::SetConfigFilePath(fs::path path)
|
||||
{
|
||||
LOCK(cs_args);
|
||||
assert(!m_config_path);
|
||||
m_config_path = path;
|
||||
}
|
||||
|
||||
ChainType ArgsManager::GetChainType() const
|
||||
{
|
||||
std::variant<ChainType, std::string> arg = GetChainArg();
|
||||
|
|
|
@ -180,6 +180,7 @@ protected:
|
|||
* Return config file path (read-only)
|
||||
*/
|
||||
fs::path GetConfigFilePath() const;
|
||||
void SetConfigFilePath(fs::path);
|
||||
[[nodiscard]] bool ReadConfigFiles(std::string& error, bool ignore_invalid_keys = false);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue