From b7b70f5c3dd1c5461435c40896dff3eed35d3221 Mon Sep 17 00:00:00 2001 From: Dengfeng Liu Date: Fri, 11 May 2018 18:25:16 +0800 Subject: [PATCH] add wificoin's sha256 --- lib/algoProperties.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/algoProperties.js b/lib/algoProperties.js index 7725ee622..b4fc9455f 100644 --- a/lib/algoProperties.js +++ b/lib/algoProperties.js @@ -14,6 +14,16 @@ var algos = module.exports = global.algos = { } } }, + 'sha256-wfc': { + //Uncomment diff if you want to use hardcoded truncated diff + diff: '000fffff00000000000000000000000000000000000000000000000000000000', + multiplier: Math.pow(2, 20), + hash: function(){ + return function(){ + return util.sha256d.apply(this, arguments); + } + } + }, 'scrypt': { //Uncomment diff if you want to use hardcoded truncated diff //diff: '0000ffff00000000000000000000000000000000000000000000000000000000',