aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.h
diff options
context:
space:
mode:
authorKiminuo <kiminuo@protonmail.com>2021-05-20 22:28:06 +0200
committerKiminuo <kiminuo@protonmail.com>2021-05-22 15:43:42 +0200
commit716de29dd8672d28bfe0a08424e9958fe61054d2 (patch)
tree06f10bdf11dd27755d686cd1503fbf01c22c889c /src/util/system.h
parentbe4171679b8eab8205e04ff86140329bd67878a0 (diff)
downloadbitcoin-716de29dd8672d28bfe0a08424e9958fe61054d2.tar.xz
Make `m_cached_blocks_path` mutable. Make `ArgsManager::GetBlocksDirPath()` const.
Diffstat (limited to 'src/util/system.h')
-rw-r--r--src/util/system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/system.h b/src/util/system.h
index f68975ffa3..88a217f71d 100644
--- a/src/util/system.h
+++ b/src/util/system.h
@@ -195,7 +195,7 @@ protected:
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};
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_network_datadir_path GUARDED_BY(cs_args);
@@ -266,7 +266,7 @@ public:
*
* @return Blocks path which is network specific
*/
- const fs::path& GetBlocksDirPath();
+ const fs::path& GetBlocksDirPath() const;
/**
* Get data directory path