From e0d39be6940128c8c0a2c6ace65e060488f74e31 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Tue, 4 Jul 2017 12:05:55 -0700 Subject: [PATCH] Update for the pool nonce save location. --- lib/pool.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pool.js b/lib/pool.js index b9746e8..2675616 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -479,6 +479,8 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer height: activeBlockTemplate.height, difficulty: this.difficulty, diffHex: this.diffHex, + clientPoolLocation: activeBlockTemplate.clientPoolLocation, + clientNonceLocation: activeBlockTemplate.clientNonceLocation, submissions: [] }; @@ -567,8 +569,8 @@ function processShare(miner, job, blockTemplate, params) { } else { blockTemplate.buffer.copy(template); template.writeUInt32BE(job.extraNonce, blockTemplate.reserveOffset); - template.writeUInt32BE(params.workerNonce, blockTemplate.clientNonceLocation); - template.writeUInt32BE(params.poolNonce, blockTemplate.clientPoolLocation); + template.writeUInt32BE(params.poolNonce, job.clientPoolLocation); + template.writeUInt32BE(params.workerNonce, job.clientNonceLocation); } let shareBuffer = global.coinFuncs.constructNewBlob(template, new Buffer(nonce, 'hex'));