Skip to content

Commit b6cb5a9

Browse files
committed
Not sure why I changed the wrong LoC. Fixed!
1 parent 238cf5e commit b6cb5a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xmr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function processShare(miner, job, blockTemplate, nonce, resultHash) {
190190
// Validate share with CN hash, then if valid, blast it up to the master.
191191
let shareBuffer = cnUtil.construct_block_blob(template, new Buffer(nonce, 'hex'));
192192
let convertedBlob = cnUtil.convert_blob(shareBuffer);
193-
hash = multiHashing.cryptonight(convertedBlob);
193+
hash = multiHashing.cryptonight(convertedBlob, convertedBlob[0] >= 7 ? convertedBlob[0] - 6 : 0);
194194
if (hash.toString('hex') !== resultHash) {
195195
console.error(global.threadName + "Bad share from miner " + miner.logString);
196196
miner.messageSender('job', miner.getJob(miner, blockTemplate, true));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy