diff options
| author | Anthony Towns <[email protected]> | 2018-04-04 18:03:00 +1000 |
|---|---|---|
| committer | Anthony Towns <[email protected]> | 2018-04-11 23:15:28 +1000 |
| commit | 95eb66d5842e5ccdeb7481b9ee92ac4aface6b0f (patch) | |
| tree | 25e37463abd88f57e9ce9767bf49f4f5e1b51955 /src/util.h | |
| parent | ArgsManager: drop m_negated_args (diff) | |
| download | discoin-95eb66d5842e5ccdeb7481b9ee92ac4aface6b0f.tar.xz discoin-95eb66d5842e5ccdeb7481b9ee92ac4aface6b0f.zip | |
ArgsManager: support config file sections
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 6b80afc58..ca6523ab1 100644 --- a/src/util.h +++ b/src/util.h @@ -228,9 +228,15 @@ protected: mutable CCriticalSection cs_args; std::map<std::string, std::vector<std::string>> m_override_args; std::map<std::string, std::vector<std::string>> m_config_args; + std::string m_network; void ReadConfigStream(std::istream& stream); public: + /** + * Select the network in use + */ + void SelectConfigNetwork(const std::string& network); + void ParseParameters(int argc, const char*const argv[]); void ReadConfigFile(const std::string& confPath); |