From 4828bfbe6e071d44456d6b8a0f574da8ab636e27 Mon Sep 17 00:00:00 2001 From: ichai <112233> Date: Wed, 11 Jun 2014 09:43:26 +0400 Subject: [PATCH 1/4] Add bindings to myriad-groestl hashing algoritm --- lib/algoProperties.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/algoProperties.js b/lib/algoProperties.js index d2494c0de..bd89d9b35 100644 --- a/lib/algoProperties.js +++ b/lib/algoProperties.js @@ -119,6 +119,14 @@ var algos = module.exports = global.algos = { } } }, + groestlmyriad: { + multiplier: Math.pow(2, 8), + hash: function(){ + return function(){ + return multiHashing.groestlmyriad.apply(this, arguments); + } + } + }, fugue: { multiplier: Math.pow(2, 8), hash: function(){ From 21e58a9956febdf13583aa8e4f02d83ec1247773 Mon Sep 17 00:00:00 2001 From: nahy Date: Wed, 11 Jun 2014 10:02:08 +0400 Subject: [PATCH 2/4] Addon adding myriad-groestl algo --- lib/jobManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/jobManager.js b/lib/jobManager.js index b84d2805f..50d3c063b 100644 --- a/lib/jobManager.js +++ b/lib/jobManager.js @@ -72,6 +72,7 @@ var JobManager = module.exports = function JobManager(options){ case 'blake': case 'fugue': case 'groestl': + case 'groestlmyriad': if (options.coin.normalHashing === true) return util.sha256d; else From b11ab236cf83ae9532a5d5fa13ee6459135da12a Mon Sep 17 00:00:00 2001 From: nahy Date: Thu, 12 Jun 2014 12:23:49 +0400 Subject: [PATCH 3/4] Additional fix for shares accepting --- lib/algoProperties.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/algoProperties.js b/lib/algoProperties.js index bd89d9b35..8a9cbf3a3 100644 --- a/lib/algoProperties.js +++ b/lib/algoProperties.js @@ -120,7 +120,7 @@ var algos = module.exports = global.algos = { } }, groestlmyriad: { - multiplier: Math.pow(2, 8), + multiplier: Math.pow(2, 32), hash: function(){ return function(){ return multiHashing.groestlmyriad.apply(this, arguments); From d47de9254bf5e0dfbbc2dd4f480f00441c1dbeca Mon Sep 17 00:00:00 2001 From: ichai Date: Tue, 19 Jan 2016 21:40:47 +0300 Subject: [PATCH 4/4] Move to 0.12.9 support --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6b195a55e..534bab4d4 100644 --- a/package.json +++ b/package.json @@ -28,12 +28,12 @@ "url": "https://github.com/zone117x/node-stratum-pool.git" }, "dependencies": { - "multi-hashing": "git://github.com/zone117x/node-multi-hashing.git", + "multi-hashing": "git://github.com/nahy/node-multi-hashing.git", "bignum": "*", "base58-native": "*", "async": "*" }, "engines": { - "node": ">=0.10" + "node": ">=0.10 <=0.12.9" } }