mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-12-01 11:43:58 +01:00
Update to reverse the pool nonce vs the client nonce.
This commit is contained in:
+2
-2
@@ -133,9 +133,9 @@ function Coin(data){
|
|||||||
// Reset the Nonce. - This is the per-miner/pool nonce
|
// Reset the Nonce. - This is the per-miner/pool nonce
|
||||||
this.extraNonce = 0;
|
this.extraNonce = 0;
|
||||||
// The clientNonceLocation is the location at which the client pools should set the nonces for each of their clients.
|
// 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.
|
// 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 () {
|
this.nextBlob = function () {
|
||||||
// Write a 32 bit integer, big-endian style to the 0 byte of the reserve offset.
|
// Write a 32 bit integer, big-endian style to the 0 byte of the reserve offset.
|
||||||
this.buffer.writeUInt32BE(++this.extraNonce, this.reserveOffset);
|
this.buffer.writeUInt32BE(++this.extraNonce, this.reserveOffset);
|
||||||
|
|||||||
Reference in New Issue
Block a user