From 9f62144d04033aec98a013c38289b296bd55e511 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Tue, 4 Jul 2017 09:34:54 -0700 Subject: [PATCH] Update to reverse the pool nonce vs the client nonce. --- lib/coins/xmr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/coins/xmr.js b/lib/coins/xmr.js index fe8fa26..7199983 100644 --- a/lib/coins/xmr.js +++ b/lib/coins/xmr.js @@ -133,9 +133,9 @@ function Coin(data){ // Reset the Nonce. - This is the per-miner/pool nonce this.extraNonce = 0; // The clientNonceLocation is the location at which the client pools should set the nonces for each of their clients. - this.clientNonceLocation = this.reserveOffset + 8; + this.clientNonceLocation = this.reserveOffset + 12; // The clientPoolLocation is for multi-thread/multi-server pools to handle the nonce for each of their tiers. - this.clientPoolLocation = this.reserveOffset + 12; + this.clientPoolLocation = this.reserveOffset + 8; this.nextBlob = function () { // Write a 32 bit integer, big-endian style to the 0 byte of the reserve offset. this.buffer.writeUInt32BE(++this.extraNonce, this.reserveOffset);