From cb13f26477963fbb8935fcb158116867ccbab137 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Thu, 31 Jan 2019 09:19:41 -0800 Subject: [PATCH] Added cn/half and cn-pico algo support --- mm.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mm.js b/mm.js index f565ede..76184a1 100755 --- a/mm.js +++ b/mm.js @@ -34,7 +34,7 @@ const child_process = require('child_process'); // *** CONSTS *** // ***************************************************************************** -const VERSION = "v1.4"; +const VERSION = "v1.5"; const DEFAULT_ALGO = "cn/2"; // this is algo that is assumed to be sent by pool if its job does not contain algo stratum extension const AGENT = "Meta Miner " + VERSION; @@ -50,7 +50,8 @@ const hashrate_regexes = [ const algo_perf_algo = { "cn/2": "cn/2", "cn": "cn/1", - "cn/msr": "cn/msr", + "cn/half": "cn/half", + "cn-pico": "cn-pico/trtl", "cn-lite": "cn-lite/1", "cn-heavy": "cn-heavy/0", }; @@ -58,7 +59,8 @@ const algo_perf_algo = { function algo_perf_class(algo) { // converts algo to algo class if (algo.indexOf("heavy") > -1) return "cn-heavy"; if (algo.indexOf("lite") > -1) return "cn-lite"; - if (algo.indexOf("msr") > -1) return "cn/msr"; + if (algo.indexOf("half") > -1) return "cn/half"; + if (algo.indexOf("pico") > -1) return "cn-pico"; if (algo.indexOf("cn/2") > -1) return "cn/2"; return "cn"; } @@ -77,7 +79,8 @@ let c = { algo_perf: { "cn/2": 0, "cn": 0, - "cn/msr": 0, + "cn/half": 0, + "cn-pico": 0, "cn-lite": 0, "cn-heavy": 0, },