diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2018-03-25 22:40:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-25 22:40:01 +0100 |
commit | a036cd81592e3b3de804ba88bb8f94729ab60b7d (patch) | |
tree | f835fc9823d80e43bdbb65023b2aed5718ee1627 /xmrstak/jconf.hpp | |
parent | 2ae7260b90fe3dbe835ba2489519510f0e57d770 (diff) | |
parent | 09a5dcce2c51d87d77244970d2c09bea3207da7a (diff) | |
download | xmr-stak-2.3.0.zip xmr-stak-2.3.0.tar.gz |
Merge pull request #1208 from fireice-uk/dev2.3.0
release 2.3.0
Diffstat (limited to 'xmrstak/jconf.hpp')
-rw-r--r-- | xmrstak/jconf.hpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/xmrstak/jconf.hpp b/xmrstak/jconf.hpp index df1bf79..6874d37 100644 --- a/xmrstak/jconf.hpp +++ b/xmrstak/jconf.hpp @@ -1,12 +1,12 @@ #pragma once +#include "xmrstak/backend/cryptonight.hpp" #include "xmrstak/misc/environment.hpp" #include "params.hpp" #include <stdlib.h> #include <string> - class jconf { public: @@ -18,11 +18,12 @@ public: return env.pJconfConfig; }; - bool parse_config(const char* sFilename = xmrstak::params::inst().configFile.c_str()); + bool parse_config(const char* sFilename, const char* sFilenamePools); struct pool_cfg { const char* sPoolAddr; const char* sWalletAddr; + const char* sRigId; const char* sPasswd; bool nicehash; bool tls; @@ -47,8 +48,13 @@ public: bool TlsSecureAlgos(); - const std::string GetCurrency(); - bool IsCurrencyMonero(); + inline xmrstak_algo GetMiningAlgo() { return mining_algo; } + + std::string GetMiningCoin(); + + static void GetAlgoList(std::string& list); + static bool IsOnAlgoList(std::string& needle); + static const char* GetDefaultPool(const char* needle); uint64_t GetVerboseLevel(); bool PrintMotd(); @@ -77,9 +83,12 @@ public: private: jconf(); + bool parse_file(const char* sFilename, bool main_conf); + bool check_cpu_features(); struct opaque_private; opaque_private* prv; bool bHaveAes; + xmrstak_algo mining_algo; }; |