summaryrefslogtreecommitdiffstats
path: root/xmrstak/jconf.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'xmrstak/jconf.hpp')
-rw-r--r--xmrstak/jconf.hpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/xmrstak/jconf.hpp b/xmrstak/jconf.hpp
index 9a4e958..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,7 +18,7 @@ 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;
@@ -48,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();
@@ -78,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;
};
OpenPOWER on IntegriCloud