mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
util: Add ArgsManager SetConfigFilePath method
Needed by multiprocess support code to pass parsed configuration to a spawned process.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user