diff --git a/lib/pool.js b/lib/pool.js index ca71820f..16255d02 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -612,7 +612,8 @@ function processShare(miner, job, blockTemplate, params) { } else { convertedBlob = global.coinFuncs.convertBlob(shareBuffer); - hash = global.coinFuncs.cryptoNight(convertedBlob); + let cn_variant = convertedBlob[0] >= 7 ? convertedBlob[0] - 6 : 0; + hash = global.coinFuncs.cryptoNight(convertedBlob, cn_variant); shareType = false; } if (hash.toString('hex') !== resultHash) {