summaryrefslogtreecommitdiffstats
path: root/xmrstak/jconf.hpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-04-01 21:37:44 +0200
committerpsychocrypt <psychocryptHPC@gmail.com>2018-04-01 22:54:02 +0200
commit68ac9673ec09cbb4f32d614348270f245abea30e (patch)
tree7603a58486954f393fe5625f64ce2e9573e089c4 /xmrstak/jconf.hpp
parent4f912a023b2ae1bdd70303c1b9f876ad5bae0b98 (diff)
downloadxmr-stak-68ac9673ec09cbb4f32d614348270f245abea30e.zip
xmr-stak-68ac9673ec09cbb4f32d614348270f245abea30e.tar.gz
refactor mining algo selection
- add `fork_height` to currency - refactor algorithm selection
Diffstat (limited to 'xmrstak/jconf.hpp')
-rw-r--r--xmrstak/jconf.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmrstak/jconf.hpp b/xmrstak/jconf.hpp
index f81a3a2..336e4be 100644
--- a/xmrstak/jconf.hpp
+++ b/xmrstak/jconf.hpp
@@ -48,9 +48,11 @@ public:
bool TlsSecureAlgos();
- inline xmrstak_algo GetMiningAlgo() { return mining_algo; }
+ inline xmrstak_algo GetMiningAlgo() const { return mining_algo; }
- inline xmrstak_algo GetMiningAlgoRoot() { return mining_algo_root; }
+ inline xmrstak_algo GetMiningAlgoRoot() const { return mining_algo_root; }
+
+ inline uint8_t GetMiningForkHeight() const { return mining_fork_height; }
std::string GetMiningCoin();
@@ -94,4 +96,5 @@ private:
bool bHaveAes;
xmrstak_algo mining_algo;
xmrstak_algo mining_algo_root;
+ uint8_t mining_fork_height;
};
OpenPOWER on IntegriCloud