From b91d33fc37253ef019546e8a3f35aee361b2a015 Mon Sep 17 00:00:00 2001 From: Min Khang Aung Date: Wed, 20 Nov 2019 21:12:19 +0000 Subject: [PATCH] Add CPUpower support --- lib/algoProperties.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/algoProperties.js b/lib/algoProperties.js index 5882b4652..7fe4e4753 100644 --- a/lib/algoProperties.js +++ b/lib/algoProperties.js @@ -213,6 +213,16 @@ var algos = module.exports = global.algos = { return multiHashing.qubit.apply(this, arguments); } } + }, + cpupower: { + multiplier: Math.pow(2, 16), + hash: function(coinConfig){ + var nValue = coinConfig.nValue || 2048; + var rValue = coinConfig.rValue || 32; + return function(data){ + return multiHashing.cpupower(data,nValue,rValue); + } + } } };