mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Make m_cached_blocks_path
mutable. Make ArgsManager::GetBlocksDirPath()
const.
This commit is contained in:
parent
be4171679b
commit
716de29dd8
2 changed files with 3 additions and 3 deletions
|
@ -388,7 +388,7 @@ std::optional<unsigned int> ArgsManager::GetArgFlags(const std::string& name) co
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
const fs::path& ArgsManager::GetBlocksDirPath()
|
const fs::path& ArgsManager::GetBlocksDirPath() const
|
||||||
{
|
{
|
||||||
LOCK(cs_args);
|
LOCK(cs_args);
|
||||||
fs::path& path = m_cached_blocks_path;
|
fs::path& path = m_cached_blocks_path;
|
||||||
|
|
|
@ -195,7 +195,7 @@ protected:
|
||||||
std::map<OptionsCategory, std::map<std::string, Arg>> m_available_args GUARDED_BY(cs_args);
|
std::map<OptionsCategory, std::map<std::string, Arg>> m_available_args GUARDED_BY(cs_args);
|
||||||
bool m_accept_any_command GUARDED_BY(cs_args){true};
|
bool m_accept_any_command GUARDED_BY(cs_args){true};
|
||||||
std::list<SectionInfo> m_config_sections GUARDED_BY(cs_args);
|
std::list<SectionInfo> m_config_sections GUARDED_BY(cs_args);
|
||||||
fs::path m_cached_blocks_path GUARDED_BY(cs_args);
|
mutable fs::path m_cached_blocks_path GUARDED_BY(cs_args);
|
||||||
mutable fs::path m_cached_datadir_path GUARDED_BY(cs_args);
|
mutable fs::path m_cached_datadir_path GUARDED_BY(cs_args);
|
||||||
mutable fs::path m_cached_network_datadir_path GUARDED_BY(cs_args);
|
mutable fs::path m_cached_network_datadir_path GUARDED_BY(cs_args);
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ public:
|
||||||
*
|
*
|
||||||
* @return Blocks path which is network specific
|
* @return Blocks path which is network specific
|
||||||
*/
|
*/
|
||||||
const fs::path& GetBlocksDirPath();
|
const fs::path& GetBlocksDirPath() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get data directory path
|
* Get data directory path
|
||||||
|
|
Loading…
Add table
Reference in a new issue